I have another gizmo here that I’d like to use to send a ‘message’ or ‘signal’ to the Core.
Basically when a button is pressed on this OTHER WiFi enabled microcontroller I’d like to somehow get a message to the Core so that I can act on the input.
How best to do this? Is there a Cloud service/feature I can use for this?
@scruffr Yes they will be on the same network. It needs to register with the core within about 4s I would say. So human instant as opposed to machine instant.
@jbennett, did you use publish/subscribe for your walk/don’t walk sign? Or did your webpage communicate with your core via the direct methods scruffr recommends? thanks
I’d consider this (UDP/TCP) the quickest and easiest way, in the over all view.
Sure Spark.subscribe() would be the easiest on the Core’s side, but you’d need more effort on the Teensy side (I guess - without knowing your WiFi library there).
On the other hand UDP/TCP is not that much of an effort do take on the Core, but just as little on the Teensy side (I guess again)
@daneboomer, to use the Spark.publish/subscribe() features, your teensy would need to support COAP authentication to the cloud and have the right keys, yada yada yada. The UDP/TCP method doesn’t require all that fuss. It’s probably simpler to replace your teensy with a Photon!
Yeah, if you have HTTPS support on the teensy then sending a API request via the Cloud REST API would be a quick way forward. But I’m guessing you don’t have HTTPS support there? In which case, using UDP/TCP directly to the device would be the simplest approach to implement.