Running the IOTA CClient library on ESP32

The full article was originally published by Sam Chen on Medium. Read the full article here.

CClient is an IOTA client library implemented in C. This is one of the modules in the entangled project. This post outlines how to run CClient in the ESP32 development framework.

Building the IOTA CClient project on ESP32

If you are new to ESP32, please follow this document to build and run a hello_world example. Below we describe the CClient build.

Step 1: checkout and initialize the project

This example project calls iota_client_get_node_info() to fetch node information and prints it out on the terminal.

$ git clone --recursive
$ cd iota_cclient_esp32
$ bash ./

Step 2: WiFi AP Configuration

Let’s setup the WiFi SSID and password for your project.
Note: ESP32 only supports the WiFi 2.4GHz channel.

$ menuconfig

Navigate to IOTA CClient Configuration and input your SSID and password.

Setup 3: Build and flash image

Now you are ready to build and flash the image to the ESP32. Please connect to the device via USB.

$ build
$ -p /dev/ttyUSB0 flash

Running the application

$ -p /dev/ttyUSB0 monitor

And you are up and running.

What’s next?

CClient is still an early development stage, but the core and extended APIs are ready to use, so you can:

  • Test CClient APIs on ESP32
  • Porting CClient to other IoT devices
  • Report bugs on the entangled repo

Please join us and continue the conversation on the #entangled-discussion channel of the IOTA Discord.

The full article was originally published by Sam Chen on Medium, where people are continuing the conversation by highlighting and responding to this story. Read the full article here.

You might also like

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More