ChipChop Arduino Library
This is a small C++ library written for the Arduino framework that handles all the communication with ChipChop automatically and should get you going in a jiffy.
The library is built as a simple C++ Class and exposes some useful little utilities that you can call from your main sketch or any other class.
NOTE
From version 1.43 this library no longer requires the installation of Arduino WebSockets2_Generic as shown in various ChipChop tutorials
This library has been tested and extensively abused on various ESP8266 & ESP32 boards.
It has also been tested to lesser extent on: UNO R4 WiFi, MKR WiFi 1010, Nano 33 IoT, Nano ESP32, Pi Pico W and some non-WiFi boards using w5500 Ethernet shields and GSM modules.
For other tye of micro-controllers, this library should give you a good starting point but you may have to do some creative modifications of the code. If you do so, please share and I will publish your modified libraries here or links to your code repository pages.
The download contains simple examples but if that is not enough than submit a question in the forum.
ChipChop_Arduino - 1.xx
ChipChop
Installation Instructions.txt
The library is built as a simple C++ Class and exposes some useful little utilities that you can call from your main sketch or any other class.
It has also been tested to lesser extent on: UNO R4 WiFi, MKR WiFi 1010, Nano 33 IoT, Nano ESP32, Pi Pico W and some non-WiFi boards using w5500 Ethernet shields and GSM modules.
For other tye of micro-controllers, this library should give you a good starting point but you may have to do some creative modifications of the code. If you do so, please share and I will publish your modified libraries here or links to your code repository pages.
The download contains simple examples but if that is not enough than submit a question in the forum.
Library Structure
The zip file contains 1 folder and installation instructions file:ChipChop_Arduino - 1.xx
ChipChop
Installation Instructions.txt
-
ChipChop/src/
- Connect, authenticate and maintain the communication channel with ChipChop
- Correctly JSON format and send heartbeats
- Correctly JSON format and send trigger events
- Parse received JSON commands and return the values to your callback
- Keep track of the real time clock
- Return current time & date
- Return any error messages to an error callback
-
all-functions.ino
Contains all examples and API calls to the ChipChopManager Class including initial settings, declaration of callbacks, what you can do in thesetup() and various options that you can use in the mainloop() . -
smart-led.ino
Simple example of controlling an led light through ChipChop by receiving/parsing commands and also sending a regular device status heartbeat. -
smart-button.ino
Simple example of a push button that sends "trigger events" that can be used to trigger custom Smart Actions to create automated interaction between your devices.
These are the actual library files and contain everything needed to:
ChipChop/examples/
ChipChop Arduino Library
Current version 1.43
Download Code