GL-S200 Read Sensor Data Script

Hello,

I am working with the demo_get_sensor_data script and making some modifications. I was curious in this script, when the following curl command is run:

curl -s localhost/rpc -d ‘{“jsonrpc”:“2.0”,“id”:“0”,“method”:“call”,“params”:[“”,“gw”,“get_device_list”,{}]}’

Is the data being pulled from the sensors at that point? Or is it returning the last values that were reported by the sensor?

I’m wondering if the sensor reports are being cached in the gateway, and this call is returning those cached values?

Hi @Humancell
Any change in Thread device status will report the change value.
The curl command above just gets the cached value.

Thank you … this makes sense.