IOTA: Running the IOTA CClient library on ESP32

  • Tuesday, 09 April 2019 19:07
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 ESP32If you are new to ESP32, please follow this document to build and run a hello_world example. Below we describe the CClient build.Requirements:An ESP32-DevKitCUSB cable — USB A / micro USB BESP32 toolchainESP-IDF (Espressif IoT Development Framework)Step 1: checkout and initialize the projectThis example project calls iota_client_get_node_info() to fetch node information and prints it out on the terminal.$ git clone --recursive https://github.com/oopsmonk/iota_cclient_esp32.git$ cd iota_cclient_esp32$ bash ./init.shStep 2: WiFi AP ConfigurationLet’s setup the WiFi SSID and password for your project.Note: ESP32 only supports the WiFi 2.4GHz channel.$ idf.py menuconfigNavigate to IOTA CClient Configuration and input your SSID and password.Setup 3: Build and flash imageNow you are ready to build and flash the image to the ESP32. Please connect to the device via USB.$ idf.py build$ idf.py -p /dev/ttyUSB0 flashRunning the application$ idf.py -p /dev/ttyUSB0 monitorAnd 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 ESP32Porting CClient to other IoT devicesReport bugs on the entangled repoPlease join us and continue the conversation on the #entangled-discussion channel of the IOTA Discord.Running the IOTA CClient library on ESP32 was originally published in IOTA on Medium, where people are continuing the conversation by highlighting and responding to this story.

Additional Info

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.

Disclaimer: As a news and information platform, also aggregate headlines from other sites, and republish small text snippets and images. We always link to original content on other sites, and thus follow a 'Fair Use' policy. For further content, we take great care to only publish original material, but since part of the content is user generated, we cannot guarantee this 100%. If you believe we violate this policy in any particular case, please contact us and we'll take appropriate action immediately.

Our main goal is to make crypto grow by making news and information more accessible for the masses.