# Ewelink-api-next - best way to get device status

**URL:** <https://forum.ewelink.cc/t/ewelink-api-next-best-way-to-get-device-status/30279>\
**Category:** Free discussion\
**Tags:** developer\
**Created:** [April 3, 2024, 7:15pm UTC](https://forum.ewelink.cc/t/ewelink-api-next-best-way-to-get-device-status/30279 "2024-04-03T19:15:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![s\_dimaio](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@s\_dimaio](https://forum.ewelink.cc/u/s_dimaio)\
**Post date:** [April 3, 2024, 7:15pm UTC](https://forum.ewelink.cc/t/ewelink-api-next-best-way-to-get-device-status/30279/1 "2024-04-03T19:15:10Z")

</div>

Hi everyone, I’m programming with ewelink-api-next (v2). To have the status of some switches as updated as possible I use the ‘getThingStatus’ function with a timer that calls it every 30 seconds. However, I wonder if there is a better system to do the same thing (for example the official ewelink app updates the status in real time).

Thank you,

Simone
