Camera Slider Firmware 1.0
Firmware for camera slider with stepper motor control and BLE communication
ble_api.h
Go to the documentation of this file.
1
16#ifndef BLE_API_H
17#define BLE_API_H
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
53#define BLE_SERVICE_DEVICE_INFO "Device Information Service"
54
67#define BLE_SERVICE_UART "BLE UART Service"
68
80#define BLE_SERVICE_BATTERY "Battery Service"
81
93#define BLE_SERVICE_DFU "OTA DFU Service"
94
// end of ble_services
96
119#define BLE_CMD_FORWARD 'a'
120
133#define BLE_CMD_BACKWARD 'b'
134
145#define BLE_CMD_STATUS 's'
146
157#define BLE_CMD_STOP 'x'
158
169#define BLE_CMD_SPEED "speed:"
170
181#define BLE_CMD_POSITION "pos:"
182
// end of ble_commands
184
198#define BLE_RESP_CMD_ACK "Command received and executed"
199
203#define BLE_RESP_ERROR "Error: Invalid command"
204#define BLE_RESP_PARAM_ERROR "Error: Invalid parameter"
205#define BLE_RESP_BUSY "Error: Device busy"
206
221#define BLE_RESP_STATUS_FORMAT "JSON status object"
222
// end of ble_responses
224
242#define BLE_ADV_INTERVAL_MIN 32
243#define BLE_ADV_INTERVAL_MAX 244
244#define BLE_ADV_FAST_TIMEOUT 30
245
255#define BLE_CONN_BANDWIDTH_MAX true
256#define BLE_CONN_AUTO_LED true
257#define BLE_PEER_NAME_MAX 32
258
// end of ble_connection
260
// end of ble_usage
298
318#define BLE_MAIN_LOOP "Main BLE processing loop"
319
329#define BLE_BUFFER_SIZE 64
330#define BLE_PROCESSING_DELAY 2
331
343#define BLE_MOTOR_INTEGRATION "Direct motor control integration"
344
// end of ble_implementation
346
363#define BLE_TROUBLESHOOT_CONNECTION "Connection troubleshooting guide"
364
374#define BLE_TROUBLESHOOT_COMMANDS "Command troubleshooting guide"
375
385#define BLE_TROUBLESHOOT_PERFORMANCE "Performance troubleshooting guide"
386
// end of ble_troubleshooting
388
406#define BLE_FUTURE_COMMANDS "Enhanced command set"
407
417#define BLE_FUTURE_LOGGING "Data logging capabilities"
418
428#define BLE_FUTURE_MULTI_DEVICE "Multi-device support"
429
// end of ble_future
431
// end of ble_api
433
434#ifdef __cplusplus
435}
436#endif
437
438#endif // BLE_API_H