Bi-monthly release with minor bug fixes and improvements
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
void serializeRainSensor(JsonObject &doc, rainsensor_data &data, String name) {
JsonObject json = doc.createNestedObject(name);
json["init"] = data.status;
json["mode"] = data.mode == 0 ? "tipping bucket" : "drop detect";
if (data.status) {
json["count"] = data.count; // only relevant in tipping bucket mode
if (data.mode == 0) {
json["rain volume"] = data.rainVolume;
} else {
json["drop freq"] = data.eventFrequency;
}
}
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.