Camera Slider Firmware 1.0
Firmware for camera slider with stepper motor control and BLE communication
Macros

Response messages sent by the device. More...

Macros

#define BLE_RESP_BUSY   "Error: Device busy"
 
#define BLE_RESP_CMD_ACK   "Command received and executed"
 Command acknowledgment responses.
 
#define BLE_RESP_ERROR   "Error: Invalid command"
 Error responses.
 
#define BLE_RESP_PARAM_ERROR   "Error: Invalid parameter"
 
#define BLE_RESP_STATUS_FORMAT   "JSON status object"
 Status response format.
 

Detailed Description

Response messages sent by the device.

The device provides feedback for all commands and status updates through the BLE UART service.

Macro Definition Documentation

◆ BLE_RESP_BUSY

#define BLE_RESP_BUSY   "Error: Device busy"

Definition at line 205 of file ble_api.h.

◆ BLE_RESP_CMD_ACK

#define BLE_RESP_CMD_ACK   "Command received and executed"

Command acknowledgment responses.

Definition at line 198 of file ble_api.h.

◆ BLE_RESP_ERROR

#define BLE_RESP_ERROR   "Error: Invalid command"

Error responses.

Definition at line 203 of file ble_api.h.

◆ BLE_RESP_PARAM_ERROR

#define BLE_RESP_PARAM_ERROR   "Error: Invalid parameter"

Definition at line 204 of file ble_api.h.

◆ BLE_RESP_STATUS_FORMAT

#define BLE_RESP_STATUS_FORMAT   "JSON status object"

Status response format.

JSON formatted status response:

{
"status": "idle|moving|error",
"position": 1234,
"target": 1234,
"speed": 50,
"battery": 85
}

Definition at line 221 of file ble_api.h.