I can’t seem to find how to send data from one device to another in the network. If I have multiple dash devices can I simply call to a device and dump data to it or is there a call that the “Master” can do to the cloud to receive this data? I did find this topic Howto send data to dash pro? - #13 by pmjackson . Is this the only way to do this data transfer?
So that all helps you get data into your dash, but how do you get that data to come from another dash? Well, you could create a device webhook and then make a cloud route that posts to that webhook. It’s a little convoluted right now, but should get the job done.
Is there an example of how to send an SMS to a device on the network using just the device ID? I see how to do it from the web dashboard but not from the arduino code in the dash itself. I did see how I can setup the routes in the dashboard but I not how to send messages to different devices depending on the message.
@jay777
I took the long road in making the UBlox module works in the Arduino environment.
If you’re comfortable with AT Commands, then read SMS on the UBLOX AT Command .
Reuben helped me a lot getting the right firmware to work for the Serial Passthrough in Version 0.9.2. Once you have the right setup, you will see all the expected logs in the Arduino Serial Monitor including asynchronous responses from UBlox.
Here is the skeletal arduino code to help you start with:
The first line of sendAT() should be SerialCloud.print(ATCommand); The write function expects a single byte (uint8_t) whereas print can take a String or a char*. The signature for sendAT should also change to void sendAT(int timeDelay, const char *ATCommand) to avoid another compiler warning.
If you are using the latest firmware and Arduino package, you can use a direct-to-modem passthrough mode without loading special firmware. The hologram_dash_passthrough example sketch included with the Arduino package shows how to switch the Dash into this passthrough mode. Here’s the above sketch using built-in passthrough mode.