# GL-S200 Read Sensor Data Script

**URL:** <https://forum.gl-inet.com/t/gl-s200-read-sensor-data-script/39696>\
**Category:** IoT\
**Created:** [March 12, 2024, 3:25pm UTC](https://forum.gl-inet.com/t/gl-s200-read-sensor-data-script/39696 "2024-03-12T15:25:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Humancell](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/humancell/32/13309_2.png) [@Humancell](https://forum.gl-inet.com/u/Humancell)\
**Post date:** [March 12, 2024, 3:25pm UTC](https://forum.gl-inet.com/t/gl-s200-read-sensor-data-script/39696/1 "2024-03-12T15:25:36Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![lancer](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/858c86/32.png) [@lancer](https://forum.gl-inet.com/u/lancer)\
**Post date:** [April 9, 2024, 8:22am UTC](https://forum.gl-inet.com/t/gl-s200-read-sensor-data-script/39696/2 "2024-04-09T08:22:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Humancell](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/humancell/32/13309_2.png) [@Humancell](https://forum.gl-inet.com/u/Humancell)\
**Post date:** [April 16, 2024, 3:13pm UTC](https://forum.gl-inet.com/t/gl-s200-read-sensor-data-script/39696/3 "2024-04-16T15:13:33Z")

</div>

Thank you … this makes sense.

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [October 29, 2025, 11:38am UTC](https://forum.gl-inet.com/t/gl-s200-read-sensor-data-script/39696/4 "2025-10-29T11:38:08Z")

</div>


