Status message
Subscribing to the status_message topic a JSON with drone status messages will be received. Subscribing to this topic is important to understand wht's going on in the drone, specially if controling the drone through the API as is the publication channel for feedback on accepted or rejected commands by the operator
TOPIC status_message
{
TYPE_MESSAGE_ID: <Type>, //integer (0: debug, 1: info, 2: warning, 3: error, 4: fatal)
STATUS_TEXT: <message>, //string
SYS_ID: <drone_id>, //integer
TIMESTAMP: <timestamp>, //timestamp
}
Js example:
socket.on("status_message", data => {
console.debug("status_message", data);
}