README for the group work for IoT exam.
Students: Leonardo Zini, Pietro Martinello and Giovanni Casari
Topic used when the device turns on or another device need a check
Topic used when the device turns off
The value must be 'start' or 'stop' to notify the change of status, other value will not be considered
When a device turns on, it need to discover other online devices, and this is the topic for this purpose
The value must be '0' for sunny values, '1' for rainy values and 'dead' when the device turns offline
When this topic arrives, in the payload there are the weather forecast of the next 24 hours
{
"City": string, # City where the device is located
"Park": string, # Park where the device is locater
"Code": string, # Code of the device, must be pseudorandom
"RoutinePeriod": int, # The interval of the irrigation routine
"TimeToWait": int, # Time to wait if there are no conditions for watering
"IpBroker" : string, # Broker's Ip of the net
"coordinates": { # The coordinates of the device
"lat": float,
"lon": float
}
}