Testing our control of the LEDs just requires us to construct a JSON message, such as those that we created in the previous section. The steps to perform the test can be found here:
- Verify that the TCP Socket Tester application is connected by verifying that it has 1 connected client and that you can see data packets streaming to the server from the sensor node.
- In the Write here the info to send... section of the application, type in the following JSON message:
{“LED1”: “On”, “LED2”: “Off”, “LED3”: “On”}
- Press the SEND button. You will find that your LEDs have now turned on!
- Now, update the message to the following:
{“LED1”: “Off”, “LED2”: “On”, “LED3”: “Off”}
- Press the SEND button. You'll see that the LED states ...