UNPKG

node-bebop

Version:

Node.js JavaScript library for the Parrot Bebop

1,748 lines (1,747 loc) 122 kB
[ { "name": "ardrone3", "id": "1", "class": [ { "name": "Piloting", "id": "0", "cmd": [ { "name": "FlatTrim", "id": "0", "$t": "Do a flat trim" }, { "name": "TakeOff", "id": "1", "$t": "Ask the drone to take off" }, { "name": "PCMD", "id": "2", "buffer": "NON_ACK", "arg": [ { "name": "flag", "type": "u8", "$t": "Boolean flag to activate roll/pitch movement" }, { "name": "roll", "type": "i8", "$t": "Roll consign for the drone [-100;100]" }, { "name": "pitch", "type": "i8", "$t": "Pitch consign for the drone [-100;100]" }, { "name": "yaw", "type": "i8", "$t": "Yaw consign for the drone [-100;100]" }, { "name": "gaz", "type": "i8", "$t": "Gaz consign for the drone [-100;100]" }, { "name": "timestampAndSeqNum", "type": "u32", "$t": "Command timestamp in milliseconds (low 24 bits) + command sequence number [0;255] (high 8 bits)." } ] }, { "name": "Landing", "id": "3", "$t": "Ask the drone to land" }, { "name": "Emergency", "id": "4", "buffer": "HIGH_PRIO", "timeout": "RETRY", "$t": "Put drone in emergency user state" }, { "name": "NavigateHome", "id": "5", "arg": { "name": "start", "type": "u8", "$t": "1 to start the navigate home, 0 to stop it" } }, { "name": "AutoTakeOffMode", "id": "6", "arg": { "name": "state", "type": "u8", "$t": "State of automatic take off mode (1 for autotake off enabled)" } }, { "name": "moveBy", "id": "7", "arg": [ { "name": "dX", "type": "float", "$t": "Wanted displacement along the front axis [m]" }, { "name": "dY", "type": "float", "$t": "Wanted displacement along the right axis [m]" }, { "name": "dZ", "type": "float", "$t": "Wanted displacement along the down axis [m]" }, { "name": "dPsi", "type": "float", "$t": "Wanted rotation of heading [rad]" } ] }, { "name": "UserTakeOff", "id": "8", "arg": { "name": "state", "type": "u8", "$t": "State of user take off mode\n - 1 to enter in user take off.\n - 0 to exit from user take off." } }, { "name": "Circle", "id": "9", "arg": { "name": "direction", "type": "enum", "enum": [ { "name": "CW", "$t": "Circling ClockWise" }, { "name": "CCW", "$t": "Circling Counter ClockWise" }, { "name": "default", "$t": "Use drone default Circling direction set by CirclingDirection cmd" } ] } } ] }, { "name": "Animations", "id": "5", "cmd": { "name": "Flip", "id": "0", "arg": { "name": "direction", "type": "enum", "enum": [ { "name": "front", "$t": "Flip direction front" }, { "name": "back", "$t": "Flip direction back" }, { "name": "right", "$t": "Flip direction right" }, { "name": "left", "$t": "Flip direction left" } ] } } }, { "name": "Camera", "id": "1", "cmd": { "name": "Orientation", "id": "0", "arg": [ { "name": "tilt", "type": "i8", "$t": "Tilt camera consign for the drone (in degree)\n The value is saturated by the drone.\n Saturation value is sent by thre drone through CameraSettingsChanged command." }, { "name": "pan", "type": "i8", "$t": "Pan camera consign for the drone (in degree)\n The value is saturated by the drone.\n Saturation value is sent by thre drone through CameraSettingsChanged command." } ] } }, { "name": "MediaRecord", "id": "7", "cmd": [ { "name": "Picture", "id": "0", "arg": { "name": "mass_storage_id", "type": "u8", "$t": "Mass storage id to take picture" } }, { "name": "Video", "id": "1", "arg": [ { "name": "record", "type": "enum", "enum": [ { "name": "stop", "$t": "Stop the video recording" }, { "name": "start", "$t": "Start the video recording" } ] }, { "name": "mass_storage_id", "type": "u8", "$t": "Mass storage id to record" } ] }, { "name": "PictureV2", "id": "2", "$t": "Take picture" }, { "name": "VideoV2", "id": "3", "arg": { "name": "record", "type": "enum", "enum": [ { "name": "stop", "$t": "Stop the video recording" }, { "name": "start", "$t": "Start the video recording" } ] } } ] }, { "name": "MediaRecordState", "id": "8", "cmd": [ { "name": "PictureStateChanged", "id": "0", "arg": [ { "name": "state", "type": "u8", "$t": "1 if picture has been taken, 0 otherwise" }, { "name": "mass_storage_id", "type": "u8", "$t": "Mass storage id where the picture was recorded" } ] }, { "name": "VideoStateChanged", "id": "1", "arg": [ { "name": "state", "type": "enum", "enum": [ { "name": "stopped", "$t": "Video was stopped" }, { "name": "started", "$t": "Video was started" }, { "name": "failed", "$t": "Video was failed" }, { "name": "autostopped", "$t": "Video was auto stopped" } ] }, { "name": "mass_storage_id", "type": "u8", "$t": "Mass storage id where the video was recorded" } ] }, { "name": "PictureStateChangedV2", "id": "2", "arg": [ { "name": "state", "type": "enum", "enum": [ { "name": "ready", "$t": "The picture recording is ready" }, { "name": "busy", "$t": "The picture recording is busy" }, { "name": "notAvailable", "$t": "The picture recording is not available" } ] }, { "name": "error", "type": "enum", "enum": [ { "name": "ok", "$t": "No Error" }, { "name": "unknown", "$t": "Unknown generic error" }, { "name": "camera_ko", "$t": "Picture camera is out of order" }, { "name": "memoryFull", "$t": "Memory full ; cannot save one additional picture" }, { "name": "lowBattery", "$t": "Battery is too low to start/keep recording." } ] } ] }, { "name": "VideoStateChangedV2", "id": "3", "arg": [ { "name": "state", "type": "enum", "enum": [ { "name": "stopped", "$t": "Video is stopped" }, { "name": "started", "$t": "Video is started" }, { "name": "notAvailable", "$t": "The video recording is not available" } ] }, { "name": "error", "type": "enum", "enum": [ { "name": "ok", "$t": "No Error" }, { "name": "unknown", "$t": "Unknown generic error" }, { "name": "camera_ko", "$t": "Video camera is out of order" }, { "name": "memoryFull", "$t": "Memory full ; cannot save one additional video" }, { "name": "lowBattery", "$t": "Battery is too low to start/keep recording." } ] } ] } ] }, { "name": "MediaRecordEvent", "id": "3", "cmd": [ { "name": "PictureEventChanged", "id": "0", "notification": "TRUE", "arg": [ { "name": "event", "type": "enum", "enum": [ { "name": "taken", "$t": "Picture taken and saved" }, { "name": "failed", "$t": "Picture failed" } ] }, { "name": "error", "type": "enum", "enum": [ { "name": "ok", "$t": "No Error" }, { "name": "unknown", "$t": "Unknown generic error ; only when state is failed" }, { "name": "busy", "$t": "Picture recording is busy ; only when state is failed" }, { "name": "notAvailable", "$t": "Picture recording not available ; only when state is failed" }, { "name": "memoryFull", "$t": "Memory full ; only when state is failed" }, { "name": "lowBattery", "$t": "Battery is too low to record." } ] } ] }, { "name": "VideoEventChanged", "id": "1", "notification": "TRUE", "arg": [ { "name": "event", "type": "enum", "enum": [ { "name": "start", "$t": "Video start" }, { "name": "stop", "$t": "Video stop and saved" }, { "name": "failed", "$t": "Video failed" } ] }, { "name": "error", "type": "enum", "enum": [ { "name": "ok", "$t": "No Error" }, { "name": "unknown", "$t": "Unknown generic error ; only when state is failed" }, { "name": "busy", "$t": "Video recording is busy ; only when state is failed" }, { "name": "notAvailable", "$t": "Video recording not available ; only when state is failed" }, { "name": "memoryFull", "$t": "Memory full" }, { "name": "lowBattery", "$t": "Battery is too low to record." }, { "name": "autoStopped", "$t": "Video was auto stopped" } ] } ] } ] }, { "name": "PilotingState", "id": "4", "cmd": [ { "name": "FlatTrimChanged", "id": "0", "$t": "Drone acknowledges that flat trim was correctly processed" }, { "name": "FlyingStateChanged", "id": "1", "arg": { "name": "state", "type": "enum", "enum": [ { "name": "landed", "$t": "Landed state" }, { "name": "takingoff", "$t": "Taking off state" }, { "name": "hovering", "$t": "Hovering / Circling (for fixed wings) state" }, { "name": "flying", "$t": "Flying state" }, { "name": "landing", "$t": "Landing state" }, { "name": "emergency", "$t": "Emergency state" }, { "name": "usertakeoff", "$t": "User take off state. Waiting for user action to take off." } ] } }, { "name": "AlertStateChanged", "id": "2", "arg": { "name": "state", "type": "enum", "enum": [ { "name": "none", "$t": "No alert" }, { "name": "user", "$t": "User emergency alert" }, { "name": "cut_out", "$t": "Cut out alert" }, { "name": "critical_battery", "$t": "Critical battery alert" }, { "name": "low_battery", "$t": "Low battery alert" }, { "name": "too_much_angle", "$t": "The angle of the drone is too high" } ] } }, { "name": "NavigateHomeStateChanged", "id": "3", "arg": [ { "name": "state", "type": "enum", "enum": [ { "name": "available", "$t": "Navigate home is available" }, { "name": "inProgress", "$t": "Navigate home is in progress" }, { "name": "unavailable", "$t": "Navigate home is not available" }, { "name": "pending", "$t": "Navigate home has been received, but its process is pending" } ] }, { "name": "reason", "type": "enum", "enum": [ { "name": "userRequest", "$t": "User requested a navigate home (available->inProgress)" }, { "name": "connectionLost", "$t": "Connection between controller and product lost (available->inProgress)" }, { "name": "lowBattery", "$t": "Low battery occurred (available->inProgress)" }, { "name": "finished", "$t": "Navigate home is finished (inProgress->available)" }, { "name": "stopped", "$t": "Navigate home has been stopped (inProgress->available)" }, { "name": "disabled", "$t": "Navigate home disabled by product (inProgress->unavailable or available->unavailable)" }, { "name": "enabled", "$t": "Navigate home enabled by product (unavailable->available)" } ] } ] }, { "name": "PositionChanged", "id": "4", "arg": [ { "name": "latitude", "type": "double", "$t": "Latitude position in decimal degrees (500.0 if not available)" }, { "name": "longitude", "type": "double", "$t": "Longitude position in decimal degrees (500.0 if not available)" }, { "name": "altitude", "type": "double", "$t": "Altitude in meters (from GPS)" } ] }, { "name": "SpeedChanged", "id": "5", "arg": [ { "name": "speedX", "type": "float", "$t": "Speed on the x axis (when drone moves forward, speed is > 0) (in m/s)" }, { "name": "speedY", "type": "float", "$t": "Speed on the y axis (when drone moves to right, speed is > 0) (in m/s)" }, { "name": "speedZ", "type": "float", "$t": "Speed on the z axis (when drone moves down, speed is > 0) (in m/s)" } ] }, { "name": "AttitudeChanged", "id": "6", "arg": [ { "name": "roll", "type": "float", "$t": "roll value (in radian)" }, { "name": "pitch", "type": "float", "$t": "Pitch value (in radian)" }, { "name": "yaw", "type": "float", "$t": "Yaw value (in radian)" } ] }, { "name": "AutoTakeOffModeChanged", "id": "7", "arg": { "name": "state", "type": "u8", "$t": "State of automatic take off mode (1 if enabled)" } }, { "name": "AltitudeChanged", "id": "8", "arg": { "name": "altitude", "type": "double", "$t": "Altitude in meters" } } ] }, { "name": "PilotingEvent", "id": "34", "cmd": { "name": "moveByEnd", "id": "0", "notification": "TRUE", "arg": [ { "name": "dX", "type": "float", "$t": "Distance traveled along the front axis [m]" }, { "name": "dY", "type": "float", "$t": "Distance traveled along the right axis [m]" }, { "name": "dZ", "type": "float", "$t": "Distance traveled along the down axis [m]" }, { "name": "dPsi", "type": "float", "$t": "Applied angle on heading [rad]" }, { "name": "error", "type": "enum", "enum": [ { "name": "ok", "$t": "No Error ; The relative displacement" }, { "name": "unknown", "$t": "Unknown generic error" }, { "name": "busy", "$t": "The Device is busy ; command moveBy ignored" }, { "name": "notAvailable", "$t": "Command moveBy is not available ; command moveBy ignored" }, { "name": "interrupted", "$t": "Command moveBy interrupted" } ] } ] } }, { "name": "Network", "id": "13", "cmd": [ { "name": "WifiScan", "id": "0", "arg": { "name": "band", "type": "enum", "enum": [ { "name": "2_4ghz", "$t": "2.4 GHz band" }, { "name": "5ghz", "$t": "5 GHz band" }, { "name": "all", "$t": "Both 2.4 and 5 GHz bands" } ] } }, { "name": "WifiAuthChannel", "id": "1", "$t": "Controller inquire the list of authorized wifi channels." } ] }, { "name": "NetworkState", "id": "14", "cmd": [ { "name": "WifiScanListChanged", "id": "0", "type": "MAP_ITEM", "arg": [ { "name": "ssid", "type": "string", "$t": "SSID of the AP" }, { "name": "rssi", "type": "i16", "$t": "RSSI of the AP in dbm (negative value)" }, { "name": "band", "type": "enum", "enum": [ { "name": "2_4ghz", "$t": "2.4 GHz band" }, { "name": "5ghz", "$t": "5 GHz band" } ] }, { "name": "channel", "type": "u8", "$t": "Channel of the AP" } ] }, { "name": "AllWifiScanChanged", "id": "1", "$t": "State sent when all scanning result sent" }, { "name": "WifiAuthChannelListChanged", "id": "2", "type": "LIST_ITEM", "arg": [ { "name": "band", "type": "enum", "enum": [ { "name": "2_4ghz", "$t": "2.4 GHz band" }, { "name": "5ghz", "$t": "5 GHz band" } ] }, { "name": "channel", "type": "u8", "$t": "The authorized channel." }, { "name": "in_or_out", "type": "u8", "$t": "Bit 0 is 1 if channel is authorized outside (0 otherwise) ; Bit 1 is 1 if channel is authorized inside (0 otherwise)" } ] }, { "name": "AllWifiAuthChannelChanged", "id": "3", "$t": "Notify the end of the list of Authorized wifi Channel." } ] }, { "name": "PilotingSettings", "id": "2", "cmd": [ { "name": "MaxAltitude", "id": "0", "arg": { "name": "current", "type": "float", "$t": "Current altitude max in m" } }, { "name": "MaxTilt", "id": "1", "arg": { "name": "current", "type": "float", "$t": "Current tilt max in degree" } }, { "name": "AbsolutControl", "id": "2", "arg": { "name": "on", "type": "u8", "$t": "1 to enable, 0 to disable" } }, { "name": "MaxDistance", "id": "3", "arg": { "name": "value", "type": "float", "$t": "Current max distance in meter" } }, { "name": "NoFlyOverMaxDistance", "id": "4", "arg": { "name": "shouldNotFlyOver", "type": "u8", "$t": "1 if the drone can't fly further than max distance, 0 if no limitation on the drone should be done" } }, { "name": "setAutonomousFlightMaxHorizontalSpeed", "id": "5", "arg": { "name": "value", "type": "float", "$t": "maximum horizontal speed [m/s]" } }, { "name": "setAutonomousFlightMaxVerticalSpeed", "id": "6", "arg": { "name": "value", "type": "float", "$t": "maximum vertical speed [m/s]" } }, { "name": "setAutonomousFlightMaxHorizontalAcceleration", "id": "7", "arg": { "name": "value", "type": "float", "$t": "maximum horizontal acceleration [m/s2]" } }, { "name": "setAutonomousFlightMaxVerticalAcceleration", "id": "8", "arg": { "name": "value", "type": "float", "$t": "maximum vertical acceleration [m/s2]" } }, { "name": "setAutonomousFlightMaxRotationSpeed", "id": "9", "arg": { "name": "value", "type": "float", "$t": "maximum yaw rotation speed [rad/s]" } }, { "name": "BankedTurn", "id": "10", "arg": { "name": "value", "type": "u8", "$t": "1 to enable, 0 to disable" } }, { "name": "MinAltitude", "id": "11", "arg": { "name": "current", "type": "float", "$t": "Current altitude min in m" } }, { "name": "CirclingDirection", "id": "12", "arg": { "name": "value", "type": "enum", "enum": [ { "name": "CW", "$t": "Circling ClockWise" }, { "name": "CCW", "$t": "Circling Counter ClockWise" } ] } }, { "name": "CirclingRadius", "id": "13", "arg": { "name": "value", "type": "u16", "$t": "The circling radius in meter" } }, { "name": "CirclingAltitude", "id": "14", "arg": { "name": "value", "type": "u16", "$t": "The circling altitude in meter" } }, { "name": "PitchMode", "id": "15", "arg": { "name": "value", "type": "enum", "enum": [ { "name": "NORMAL", "$t": "Positive pitch values will make the drone lower its nose.\n Negative pitch values will make the drone raise its nose." }, { "name": "INVERTED", "$t": "Pitch commands are inverted.\n Positive pitch values will make the drone raise its nose.\n Negative pitch values will make the drone lower its nose." } ] } }, { "name": "LandingMode", "id": "16", "arg": { "name": "value", "type": "enum", "enum": [ { "name": "LINEAR", "$t": "Linear landing." }, { "name": "SPIRALE", "$t": "Spirale landing." } ] } } ] }, { "name": "PilotingSettingsState", "id": "6", "cmd": [ { "name": "MaxAltitudeChanged", "id": "0", "arg": [ { "name": "current", "type": "float", "$t": "Current altitude max" }, { "name": "min", "type": "float", "$t": "Range min of altitude" }, { "name": "max", "type": "float", "$t": "Range max of altitude" } ] }, { "name": "MaxTiltChanged", "id": "1", "arg": [ { "name": "current", "type": "float", "$t": "Current max tilt" }, { "name": "min", "type": "float", "$t": "Range min of tilt" }, { "name": "max", "type": "float", "$t": "Range max of tilt" } ] }, { "name": "AbsolutControlChanged", "id": "2", "arg": { "name": "on", "type": "u8", "$t": "1 if enabled, 0 if disabled" } }, { "name": "MaxDistanceChanged", "id": "3", "arg": [ { "name": "current", "type": "float", "$t": "Current max distance in meter" }, { "name": "min", "type": "float", "$t": "Minimal possible max distance" }, { "name": "max", "type": "float", "$t": "Maximal possible max distance" } ] }, { "name": "NoFlyOverMaxDistanceChanged", "id": "4", "arg": { "name": "shouldNotFlyOver", "type": "u8", "$t": "1 if the drone won't fly further than max distance, 0 if no limitation on the drone will be done" } }, { "name": "AutonomousFlightMaxHorizontalSpeed", "id": "5", "arg": { "name": "value", "type": "float", "$t": "maximum horizontal speed [m/s]" } }, { "name": "AutonomousFlightMaxVerticalSpeed", "id": "6", "arg": { "name": "value", "type": "float", "$t": "maximum vertical speed [m/s]" } }, { "name": "AutonomousFlightMaxHorizontalAcceleration", "id": "7", "arg": { "name": "value", "type": "float", "$t": "maximum horizontal acceleration [m/s2]" } }, { "name": "AutonomousFlightMaxVerticalAcceleration", "id": "8", "arg": { "name": "value", "type": "float", "$t": "maximum vertical acceleration [m/s2]" } }, { "name": "AutonomousFlightMaxRotationSpeed", "id": "9", "arg": { "name": "value", "type": "float", "$t": "maximum yaw rotation speed [rad/s]" } }, { "name": "BankedTurnChanged", "id": "10", "arg": { "name": "state", "type": "u8", "$t": "1 if enabled, 0 if disabled" } }, { "name": "MinAltitudeChanged", "id": "11", "arg": [ { "name": "current", "type": "float", "$t": "Current altitude min" }, { "name": "min", "type": "float", "$t": "Range min of altitude min" }, { "name": "max", "type": "float", "$t": "Range max of altitude min" } ] }, { "name": "CirclingDirectionChanged", "id": "12", "arg": { "name": "value", "type": "enum", "enum": [ { "name": "CW", "$t": "Circling ClockWise" }, { "name": "CCW", "$t": "Circling Counter ClockWise" } ] } }, { "name": "CirclingRadiusChanged", "id": "13", "arg": [ { "name": "current", "type": "u16", "$t": "The current circling radius in meter" }, { "name": "min", "type": "u16", "$t": "Range min of circling radius in meter" }, { "name": "max", "type": "u16", "$t": "Range max of circling radius in meter" } ] }, { "name": "CirclingAltitudeChanged", "id": "14", "arg": [ { "name": "current", "type": "u16", "$t": "The current circling altitude in meter" }, { "name": "min", "type": "u16", "$t": "Range min of circling altitude in meter" }, { "name": "max", "type": "u16", "$t": "Range max of circling altitude in meter" } ] }, { "name": "PitchModeChanged", "id": "15", "arg": { "name": "value", "type": "enum", "enum": [ { "name": "NORMAL", "$t": "Positive pitch values will make the drone lower its nose.\n Negative pitch values will make the drone raise its nose." }, { "name": "INVERTED", "$t": "Pitch commands are inverted.\n Positive pitch values will make the drone raise its nose.\n Negative pitch values will make the drone lower its nose." } ] } }, { "name": "LandingModeChanged", "id": "16", "arg": { "name": "value", "type": "enum", "enum": [ { "name": "LINEAR", "$t": "Linear landing." }, { "name": "SPIRALE", "$t": "Spirale landing." } ] } } ] }, { "name": "SpeedSettings", "id": "11", "cmd": [ { "name": "MaxVerticalSpeed", "id": "0", "arg": { "name": "current", "type": "float", "$t": "Current max vertical speed in m/s" } }, { "name": "MaxRotationSpeed", "id": "1", "arg": { "name": "current", "type": "float", "$t": "Current max yaw rotation speed in degree/s" } }, { "name": "HullProtection", "id": "2", "arg": { "name": "present", "type": "u8", "$t": "1 if present, 0 if not present" } }, { "name": "Outdoor", "id": "3", "arg": { "name": "outdoor", "type": "u8", "$t": "1 if outdoor flight, 0 if indoor flight" } }, { "name": "MaxPitchRollRotationSpeed", "id": "4", "arg": { "name": "current", "type": "float", "$t": "Current max pitch/roll rotation speed in degree/s" } } ] }, { "name": "SpeedSettingsState", "id": "12", "cmd": [ { "name": "MaxVerticalSpeedChanged", "id": "0", "arg": [ { "name": "current", "type": "float", "$t": "Current max vertical speed in m/s" }, { "name": "min", "type": "float", "$t": "Range min of vertical speed" }, { "name": "max", "type": "float", "$t": "Range max of vertical speed" } ] }, { "name": "MaxRotationSpeedChanged", "id": "1", "arg": [ { "name": "current", "type": "float", "$t": "Current max yaw rotation speed in degree/s" }, { "name": "min", "type": "float", "$t": "Range min of yaw rotation speed" }, { "name": "max", "type": "float", "$t": "Range max of yaw rotation speed" } ] }, { "name": "HullProtectionChanged", "id": "2", "arg": { "name": "present", "type": "u8", "$t": "1 if present, 0 if not present" } }, { "name": "OutdoorChanged", "id": "3", "arg": { "name": "outdoor", "type": "u8", "$t": "1 if outdoor flight, 0 if indoor flight" } }, { "name": "MaxPitchRollRotationSpeedChanged", "id": "4", "arg": [ { "name": "current", "type": "float", "$t": "Current max pitch/roll rotation speed in degree/s" }, { "name": "min", "type": "float", "$t": "Range min of pitch/roll rotation speed" }, { "name": "max", "type": "float", "$t": "Range max of pitch/roll rotation speed" } ] } ] }, { "name": "NetworkSettings", "id": "9", "cmd": [ { "name": "WifiSelection", "id": "0", "arg": [ { "name": "type", "type": "enum", "enum": [ { "name": "auto", "$t": "Auto selection" }, { "name": "manual", "$t": "Manual selection" } ] }, { "name": "band", "type": "enum", "enum": [ { "name": "2_4ghz", "$t": "2.4 GHz band" }, { "name": "5ghz", "$t": "5 GHz band" }, { "name": "all", "$t": "Both 2.4 and 5 GHz bands" } ] }, { "name": "channel", "type": "u8", "$t": "The channel (not used in auto mode)" } ] }, { "name": "wifiSecurity", "id": "1", "arg": [ { "name": "type", "type": "enum", "enum": [ { "name": "open", "$t": "Wifi is not protected by any security (default)" }, { "name": "wpa2", "$t": "Wifi is protected by wpa2" } ] }, { "name": "key", "type": "string", "$t": "The key to secure the network (empty if type is open)" }, { "name": "keyType", "type": "enum", "enum": { "name": "plain", "$t": "Key is plain text, not encrypted" } } ] } ] }, { "name": "NetworkSettingsState", "id": "10", "cmd": [ { "name": "WifiSelectionChanged", "id": "0", "arg": [ { "name": "type", "type": "enum", "enum": [ { "name": "auto_all", "$t": "Auto selection" }, { "name": "auto_2_4ghz", "$t": "Auto selection 2.4ghz" }, { "name": "auto_5ghz", "$t": "Auto selection 5 ghz" }, { "name": "manual", "$t": "Manual selection" } ] }, { "name": "band", "type": "enum", "enum": [ { "name": "2_4ghz", "$t": "2.4 GHz band" }, { "name": "5ghz", "$t": "5 GHz band" }, { "name": "all", "$t": "Both 2.4 and 5 GHz bands" } ] }, { "name": "channel", "type": "u8", "$t": "The channel (depends of the band)" } ] }, { "name": "wifiSecurityChanged", "id": "1", "arg": { "name": "type", "type": "enum", "enum": [ { "name": "open", "$t": "Wifi is not protected by any security (default)" }, { "name": "wpa2", "$t": "Wifi is protected by wpa2" } ] } }, { "name": "wifiSecurity", "id": "2", "arg": [ { "name": "type", "type": "enum", "enum": [ { "name": "open", "$t": "Wifi is not protected by any security (default)" }, { "name": "wpa2", "$t": "Wifi is protected by wpa2" } ] }, { "name": "key", "type": "string", "$t": "The key used to secure the network (empty if type is open)" }, { "name": "keyType", "type": "enum", "enum": { "name": "plain", "$t": "Key is plain text, not encrypted" } } ] } ] }, { "name": "SettingsState", "id": "16", "cmd": [ { "name": "ProductMotorVersionListChanged", "id": "0", "type": "MAP_ITEM", "arg": [ { "name": "motor_number", "type": "u8", "$t": "Product Motor number" }, { "name": "type", "type": "string", "$t": "Product Motor type" }, { "name": "software", "type": "string", "$t": "Product Motors software version" }, { "name": "hardware", "type": "string", "$t": "Product Motors hardware version" } ] }, { "name": "ProductGPSVersionChanged", "id": "1", "arg": [ { "name": "software", "type": "string", "$t": "Product GPS software version" }, { "name": "hardware", "type": "string", "$t": "Product GPS hardware version" } ] },