ChipChop Support Forum
Log in
Log out
Join the forum
My Details
REPLIES: 2
VIEWS: 143
BACK
REPLY TO THIS POST
Swapfile
29 Jan 2025
Trigger Event update on Phone App instant but on PC Live Control only after 10seconds.
Why does the Live Control on PC and Phone App not update at the same time.

I did add code that only send the trigger when the Input change.
Gizmo
29 Jan 2025

The Dev Console and App are two completely different servers and all API servers communicate with them individually (an API server is where your device connects to and handles all the logic, actions, communications, security etc)

The sync of the data in each (Dev or App) happens on a 10 sec interval. The ChipChop.triggerEvent() should show the change pretty quickly but the API server decides who to give priority so you may not see the change at the exact same time in the Dev Console and App.

Also, the Dev console is only intended for testing so it's not as "real-time" as the app, to maintain a real time connection it takes resources. Also, if for any reason the real-time sockets connection is temporarily interrupted between your browser and the Dev Console/App server the communication falls back to http and 10 sec polling.

Another factor is your latency, depending how far you are physically from each server and your internet provider it will take different time for the data packets to travel


Swapfile
29 Jan 2025

Aaaa.. Thanks a lot I thought I did something wrong.