The use of the ESP8266 in the world of IoT

User avatar
By Ahmad Sadiq
#65013 I have been working on an IoT project for almost 2 years now. It is an IoT framework that partly runs on a device and partly runs on the cloud. The device side is a library that enables you to build your devices whether sensor or actuator without worrying about connectivity. It runs on Arduino IDE and supports ESP8266 and other arduino compatible boards and modules.

The power of the framework is what you can do on the cloud. Each device is modeled as a node with ports that can be manipulated using unique tools provided on the cloud. One of these tools is a graphical application builder that can be used to manipulate data as if they are signal flows and can be easily used to build complex web applications with databases, charts, forms and other rich user interface elements. This can be wired to your physical devices to read, store, analyze and present sensor data and devise control strategies back to actuator in realtime. All this without writing a single line of code.

I want the community to help me evaluate this system and I am hoping to recruit interested developers to join me in the project. Please read the somewhat sparse documentation here: http://www.nodewire.org
User avatar
By Ahmad Sadiq
#65020 Example.
1. Visit http://cloud.nodewire.org/ and create an account.
2. Get your instance ID from the settings menu.
3. paste the following code in your Arduino IDE and compile and upload to a NodeMCU:
Code: Select all#include <nnode.h>
#include <nesp8266link.h>

#define LED LED_BUILTIN

Node<int> node;
Esp8266Link link;

void setup() {
  Serial.begin(38400);
  link.begin();

  node.inputs = "led";
  node.init("node01");
  node.setLink(&link);

  node.on("led",
     [](nString val, nString sender) {
        digitalWrite(LED,(int)val);
     }
  );

  pinMode(LED, OUTPUT);
}

void loop() {
  node.run();
}