Skip to content

Building in Arduino IDE

as-iotex edited this page Nov 10, 2021 · 2 revisions

Installing the library

Using the Arduino IDEs built-in Library Manager, install the IoTeX-Client library

Dependencies

Using the Arduino IDEs built-in Library Manager, also install the following libraries:

Using the library in your sketches

Include the IoTeX-Client main header in your Arduino Sketch:

#include <IoTeXClient.h>

Create the Connection object, passing the connection details:

const char ip[] = "gateway.iotexlab.io";
const char baseUrl[] = "iotexapi.APIService";
const int port = 10000;
Connection<Api> connection(ip, port, baseUrl);
Clone this wiki locally