CropWaifu is a crop micro-climate analyzer and controller based on ESP32.
CropWaifu is a fork of CanWaifu.
Upper computer publishes to topic cropwaifu/control
Message format (JSON)
{
"messageID":1, // int
"boardID":1, //int (0-6),
"mode":1, //int (1 = Absolute control, 0 = Closed-loop control),
"fan":255, //PWM number (0-255, Only when mode = 1),
"led":255, //PWM number (0-255, Only when mode = 1),
"temperature":23.5, // degree Celcius(float),
"lightIntensity":450.0, // Luminance(float),
"timestamp":1234 //int
}Lower computer publishes to topic cropwaifu/respond
Lower computer's response format (JSON)
{
"messageID":1, // int,
"boardID":1, // int (0-6),
"status":"OK",// OK or FAIL,
"timestamp":1235 // int
}