See also:
- PropData class reference
Each flavor of PyProp base class either implements or redefines the Prop base class interface:
- AsyncioProp see
PropApp.py
- PygameProp see
PropApp.py
- QtProp see
QtPropApp.h
- GuizeroProp see
PropApp.py
- KivyProp see
KivyProp.h
Every Prop constructor expects:
client
parameter- a Paho MQTT client created in
main.py
usually withmqtt_client = mqtt.Client(uuid.uuid4().urn, clean_session=True, userdata=None)
- a Paho MQTT client created in
Regarding the Prop flavor you will have to provide more parameters, such as argv
and others.
See:
- AsyncioProp
main.py
example - PygameProp
main.py
example - QtProp
main.py
example - GuizeroProp
main.py
example - KivyProp
main.py
example
The Prop class interface is consistent with the Prop class of the ArduinoProps library for Arduino boards.
addData(data)
- registers a PropData instance to be treated by
sendAllData()
andsendDataChanges()
methods
- registers a PropData instance to be treated by
addPeriodicAction(title, func, time)
- add an action
func
to be executed everytime
period (in seconds)
- add an action
sendAllData()
- sends the
DATA
message for all registered data
- sends the
sendDataChanges()
- sends the
DATA
message for all registered data that value has changed since last call.
- sends the
sendData(data)
- send the
data
string in aDATA
message
- send the
sendDone(action)
- send the
action
string in aDONE
message
- send the
sendMesg(message, topic=None)
- send the
message
string in aMESG
message to the outbox or thetopic
parameter
- send the
sendOmit(action)
- send the
action
string in aOMIT
message
- send the
sendOver(challenge)
- send the
challenge
string in aOVER
message
- send the
sendProg(program)
- send the
program
string in aPROG
message
- send the
sendRequ(request, topic=None)
- send the
request
string in aREQU
message to the outbox or thetopic
parameter
- send the
For send----()
methods see Room Outbox protocol
Faure Systems (Apr 17th, 2020)
- company: FAURE SYSTEMS SAS
- mail: dev at faure dot systems
- github: fauresystems
- web: Faure Systems