Implement a resource on server side (Raspberry Pi) that could take command from client side and perform continuous reading of sensor data.
Should either:
a) Continuously read indefinitely, stop until a stop command issued (be careful that this may need multi-threads). Make sure a stop command still can be heard when it's continuously reading data
OR
b) Take a parameter (read time, read count) and read sensor for a period of time or an indicated count.
Implement a resource on server side (Raspberry Pi) that could take command from client side and perform continuous reading of sensor data. Should either: a) Continuously read indefinitely, stop until a stop command issued (be careful that this may need multi-threads). Make sure a stop command still can be heard when it's continuously reading data OR b) Take a parameter (read time, read count) and read sensor for a period of time or an indicated count.