Link Search Menu Expand Document

arena-py API v1.0.1

arena.device

Gives access to an ARENA device. Can create and execute various user-defined functions/tasks.

Parameters
  • str host: Hostname of the ARENA webserver (required).
  • str realm: Reserved topic fork for future use (optional).
  • str namespace: Username of authenticated user or other namespace (automatic).
  • str device: The name of the device, without namespace (required).
  • int network_latency_interval: Interval (in ms) to run network graph latency update. Default value is 10000 (10 secs). Ignore this parameter.
  • func on_msg_callback: Called on all MQTT messages received. Default = None.
  • func end_program_callback: Called on MQTT disconnect. Default = None.
  • bool debug: If true, print a log of all publish messages from this client. Default = False.
Device( host='arenaxr.org', realm='realm', network_latency_interval=10000, on_msg_callback=None, end_program_callback=None, debug=False, **kwargs)
async def process_message(self):
def publish(self, topic, payload_obj):

Publishes to mqtt broker.

def on_publish(self, client, userdata, mid):

Table of contents