|
LightHub 4.6.0
Open-source smart home controller firmware
|
#include <Arduino.h>#include "itemCmd.h"#include "main.h"#include "Streaming.h"#include "item.h"#include "bright.h"#include <utility/stringbuffer.h>#include <Adafruit_NeoPixel.h>Functions | |
| int | txt2cmd (char *payload) |
| int | type2num (char *payload) |
| int | replaceCmdToInt (aJsonObject *verb) |
| int | replaceTypeToInt (aJsonObject *verb) |
| int replaceCmdToInt | ( | aJsonObject * | verb | ) |
| int replaceTypeToInt | ( | aJsonObject * | verb | ) |
| int txt2cmd | ( | char * | payload | ) |
Translate a text payload to a command code.
| payload | - text command word ("ON", "HALT", ...), number or color |
| int type2num | ( | char * | payload | ) |