See also:
- ArduinoProps sketch
- PropData class reference
- PropAction class reference
Prop (see Prop.h) is an interface (base class) implemented by 3 classes:
- BridgeProp for Yun board and Yun shield
- EthernetProp for Ethernet shield
- WifiProp for WiFiNINA boards
BridgeProp(const char*, const char*, const char*, const char*, const int)EthernetProp(const char*, const char*, const char*, const char*, const int)WifiProp(const char*, const char*, const char*, const char*, const int)
Each constructor implement the Prop interface:
Props(const char* client_id, const char* in_box, const char* out_box, const char* broker, const int port)
BridgeProp prop(u8"Arduino Blink", // as MQTT client id, should be unique per client for given broker
u8"Room/My room/Props/Arduino Blink/inbox",
u8"Room/My room/Props/Arduino Blink/outbox",
"192.168.1.53", // your MQTT server IP address
1883); // your MQTT server port;The Prop class interface is consistent with the Prop class of the PyProps library for Raspberry boards.
virtual void begin(void(*)(String) = NULL) = 0- the pure virtual
begin()sets the network client
- the pure virtual
void addData(PropData*)- registers a PropData instance to be treated by
sendAllData()andsendDataChanges()methods
- registers a PropData instance to be treated by
void loop()- is the method to be called in the sketch loop()
void resetIntervals(const int changes, const int silent)void resetMcu()- restarts the sketch (like the reset button)
void sendAllData()- sends the
DATAmessage for all registered data
- sends the
void sendDataChanges()- sends the
DATAmessage for all registered data that value has changed since last call
- sends the
void sendData(String variables)- send the
datastring in aDATAmessage
- send the
void sendDone(String action)- send the
actionstring in aDONEmessage
- send the
void sendMesg(String message)- send the
messagestring in aMESGmessage to the outbox
- send the
void sendMesg(String topic, char* message)- send the
messagestring in aMESGmessage to thetopicparameter
- send the
void sendOmit(String action)- send the
actionstring in aOMITmessage
- send the
void sendOver(String challenge)- send the
challengestring in aOVERmessage
- send the
void sendProg(String program)- send the
programstring in aPROGmessage
- send the
void sendRequ(String request)- send the
requeststring in aREQUmessage to the outbox
- send the
void sendRequ(String topic, char*)- send the
requeststring in aREQUmessage to thetopicparameter
- send the
For send----() methods see Application protocol for escape room 2.0 prop
Faure Systems (Oct 18th, 2019)
- company: FAURE SYSTEMS SAS
- mail: dev at faure dot systems
- github: fauresystems
- web: Faure Systems