Assuming the following to simplify structs in RPCs or limit the number of different RPCs.
QueryState on sensors/devices will only be called by the gateway on temperature sensors.
Possibly rename to QueryTemperature?
Ended up having to query the motion sensors.
ReportState on the gateway will only be called by motion sensors.
Possibly rename to ReportMotion?
The gateway will not QueryState on devices before calling ChangeState. The gateway will assume that if the state it requests is the devices current state, then the ChangeState call is basically a no-op.
Is this OK. I think we can accomplish everything needed with this. Have I overlooked something?
Assuming the following to simplify structs in RPCs or limit the number of different RPCs.
QueryState on sensors/devices will only be called by the gateway on temperature sensors.Possibly rename to QueryTemperature?Is this OK. I think we can accomplish everything needed with this. Have I overlooked something?