This document will guide you through the Radio Push Button project. You will be able to interact with your push button in Node-RED and trigger the IFTTT push notification service when the button gets pressed. You will get the push notification on your smart phone.
Either BigClown Radio Push Button Kit, or individual components:
In this procedure we will use the BigClown Playground to upload firmware to the Core Module.
Step 1: Connect the Micro USB cable to the Core Module and your computer
Step 2: Flash Firmware
Run the BigClown Playground. In the Firmware tab choose and upload the bcf-radio-push-button firmware to the Core Module:
Flashing Core Module R1 & R2
For differences of flashing older Core Module 1 and newer Core Module 2 please read Core Module R1 and R2 comparison in the Hardware section
Step 3: Remove the Micro USB cable from the Core Module and your computer
At this point your firmware is successfully uploaded.
See short video with easy step by step demonstration:
Step 1: Start with the Mini Battery Module
Step 2: Plug the Core Module on top of the Mini Battery Module
Step 3: Plug the Button Module on top of the Core Module
If you are using the new BigClown Playground, then use the Functions tab instead of using http://localhost:1880/. Also the pairing process is now done in Devices tab. For communication test use the Messages tab.
This snippet creates a connection between the MQTT topic node/push-button:0/push-button/-/event-count and an HTTP request. Before passing the message to the HTTP request, we remove the payload parameter since it would be used in the HTTP request body.
Step 3: Double click on http request node and edit the IFTTT URL obtained in the previous section
Step 4: Save the URL by clicking on the Done button
Step 5: Deploy the flow using the Deploy button in the top-right corner
At this point, you should get a push notification when you press the button.