Communicating two devices with different tokens

Maybe you would be better using the HTTP(S) API. Here’s an ESP32 example…

If you want to send multiple values from one device to another then I’d suggest that you don’t keep calling the api_bridge() function multiple times in rapid succession but instead modify it to use the batch update API…

and update multiple virtual pins at the same time.

Pete.