O2 2.0
A communication protocol for interactive music and media applications.
|
Functions | |
O2err | o2_mqtt_enable (const char *broker, int port_num) |
Enable MQTT to form wide-area-network connections between O2 processes. More... | |
O2err o2_mqtt_enable | ( | const char * | broker, |
int | port_num | ||
) |
Enable MQTT to form wide-area-network connections between O2 processes.
Note that o2_mqtt_enable can be called before o2_initialize or while O2 initialization is waiting for a public IP port. In that case, O2_SUCCESS is called, but if O2 fails to obtain a public IP port (within about 10 seconds), an MQTT connection will not be established. This decision can be detected by calling o2_get_addresses (it will set the #public_ip parameter to "00000000" if there is no public IP).
broker | An IP address or name for an MQTT broker, or NULL or empty for default. |
port_num | A port number for the MQTT broker, or 0 for default. |