This repository contains the code for nodeMCU devices for ETSI OneM2M Hackaton in Málaga.
- NodeMCU v1.0
- LiquidCrystal_I2C
- ArduinoJson
- ESP8266WebServer
#define SECRET_SSID "xxxx"
#define SECRET_PASS "xxxx"
SECRET_SSID
: WiFi network's SSID.SECRET_PASS
: WiFi network's password.
#define RESOURCE_NAME "DeviceStreetxxxx"
#define LONGITUDE xxxx
#define LATITUDE xxxx
#define REQUEST_PERIOD xxxx
#define MAX_ATTEMPTS xxxx
#define MAX_CIN xxxx
#define CSE_SCHEMA "xxxx"
#define CSE_ADDRESS "xxx.xxx.xxx.xxx"
#define CSE_PORT xxxx
#define CSE_ORIGINATOR "xxxx"
#define CSE_ENDPOINT "xxxx"
#define CSE_RELEASE xxxx
RESOURCE_NAME
: "Device" followed by the name of the street where the device will be installed followed by a number.LONGITUDE
: Device's longitude.LATITUDE
: Device's latitude.REQUEST_PERIOD
: Milliseconds between data readings posts to the CSE. Default: 5000.MAX_ATTEMPTS
: Maximum number of attemps to connect to the WiFi network. Default: 20.MAX_CIN
: Maximum number of content instances ("cin") for the DATA container. Default: 5.CSE_SCHEMA
: Either "http" or "https".CSE_ADDRESS
: CSE's (IP) address.CSE_PORT
: CSE's port.CSE_ORIGINATOR
: X-M2M-Origin header prefix. Default: "Cae-Smart".CSE_ENDPOINT
: Base CSE endpoint. Default: "\cse-in".CSE_RELEASE
: X-M2M-RVI header. Default: 3
#define RESOURCE_NAME "DeviceStreetXXXX"
#define LONGITUDE xxxx
#define LATITUDE xxxx
#define MAX_ATTEMPTS xxxx
#define SERVER_PORT xx
#define CSE_SCHEMA "xxxx"
#define CSE_ADDRESS "xxx.xxx.xxx.xxx"
#define CSE_PORT xxxx
#define CSE_ORIGINATOR "xxxx"
#define CSE_ENDPOINT "xxxx"
#define CSE_RELEASE xxxx
#define ACTUATORS_GROUP "ActuatorsGroup"
All the fields are the same as in sensors config.h
, but two fields are added:
SERVER PORT
: Port that will listen to the actuator server.ACTUATORS_GROUP
actuators AE resource name at the CSE.