mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Add HASP_RANDOM macro
This commit is contained in:
parent
df393d70f9
commit
0dc6e58b86
@ -46,7 +46,7 @@ void custom_get_sensors(JsonDocument& doc)
|
||||
JsonObject sensor = doc.createNestedObject(F("Custom"));
|
||||
|
||||
/* Key-Value pair of the sensor value */
|
||||
sensor[F("Random")] = random(256);
|
||||
sensor[F("Random")] = HASP_RANDOM(256);
|
||||
}
|
||||
|
||||
void custom_topic_payload(const char* topic, const char* payload, uint8_t source){
|
||||
|
Loading…
x
Reference in New Issue
Block a user