Module Part 5 - Sending data from the deviceWISE Cloud to a module
This part will walk you through sending data from the deviceWISE Cloud to the module. You will explore sending a message from the deviceWISE Cloud using the Management Portal to a module.
Prerequisites
The following are the prerequisites:
- You have a web browser and Internet connection.
- You have an account on the Management Portal.
- You have a Telit 910 module that supports the deviceWISE Cloud API.
- You understand how to connect to your module and execute AT commands.
- You are familiar with the Telit AT Terminal application.
- Your module is connected to the deviceWISE Cloud and registered as a thing.
Sending a message or Method from deviceWISE Cloud
To send a message from the deviceWISE Cloud to the module, follow the steps below:
- Make sure the module is connected to the deviceWISE Cloud. For more information on Connecting the module to the deviceWISE Cloud, see Module Part 3 - Connecting
the module to the cloud
- On the Thing's page, click the Edit definition to edit the Thing definition
- Create a method to send a message to the module
- Click Update
Now you will see the new method in your Thing's Method tab - Click on the new button to send a message
- Enter the new message and click Execute
You will see a similar message in your AT Terminal## Wait for a #DWRING notification to indicate that there is a message #DWRING: 3,14,68
The Execute button toggles to Processing indicating that it is waiting for the ACK
The following steps 7 and 8 need to be done before the Default method timeout. For more information on Default method timeout, see Updating user profile.
- Issue the following command in the AT Terminal, to receive the incoming data In an ideal situation, this message needs to be generated from your application.
## Command to receive the incoming message AT#DWRCV: 14
You will receive the message as follows:
#DWDATA: 14,0,68,5c928a25fe2a135775802c2b,multitechmodule,sendmsg,msgtext,Hello World
- Now issue the following command in the AT Terminal, to acknowledge that your received this message with the message id =
5c928a25fe2a135775802c2b
In an ideal situation, this message needs to be generated from your application.AT#DWSEND=3,5c928a25fe2a135775802c2b,0
This ACK confirms that the message is received and the Processing button toggles back to Execute.
Below is the snapshot of the commands in the AT Controller. You will see in the inputs highlighted.
You have completed Part 5
For additional resources to learn about the platform and its features, see What's next.