Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_Strings.h
Go to the documentation of this file.
1
8
#pragma once
9
23
#define BLE_SERVICE_GENERAL "General"
24
#define BLE_SERVICE_INDOOR_LOCALIZATION "Indoor Localization"
25
#define BLE_SERVICE_POWER "Power"
26
#define BLE_SERVICE_GENERIC "Generic"
27
#define BLE_SERVICE_BATTERY "Battery"
28
#define BLE_SERVICE_ALERT "Alert"
29
#define BLE_SERVICE_SCHEDULE "Schedule"
30
#define BLE_SERVICE_DEVICE_INFORMATION "Device Information"
31
#define BLE_SERVICE_CROWNSTONE "Crownstone"
32
#define BLE_SERVICE_SETUP "Setup"
33
34
#define BLE_CHAR_TEMPERATURE "Temperature"
35
#define BLE_CHAR_RESET "Reset"
36
#define BLE_CHAR_MESH_CONTROL "Mesh Control"
37
#define BLE_CHAR_CONTROL "Control"
38
#define BLE_CHAR_CONFIG_CONTROL "Config Control"
39
#define BLE_CHAR_CONFIG_READ "Config Read"
40
#define BLE_CHAR_STATE_CONTROL "State Control"
41
#define BLE_CHAR_STATE_READ "State Read"
42
#define BLE_CHAR_SESSION_DATA "Session data"
43
#define BLE_CHAR_FACTORY_RESET "Recovery"
44
#define BLE_CHAR_RSSI "RSSI"
45
#define BLE_CHAR_SCAN_CONTROL "Scan Control"
46
#define BLE_CHAR_SCAN_LIST "Scanned Devices"
47
#define BLE_CHAR_TRACK "Track Control"
48
#define BLE_CHAR_TRACK_LIST "Tracked Devices"
49
#define BLE_CHAR_PWM "PWM"
50
#define BLE_CHAR_RELAY "Relay"
51
#define BLE_CHAR_POWER_SAMPLES "Power Samples"
52
#define BLE_CHAR_POWER_CONSUMPTION "Power Consumption"
53
#define BLE_CHAR_NEW_ALERT "New Alert"
54
#define BLE_CHAR_CURRENT_TIME "Current Time"
55
#define BLE_CHAR_WRITE_SCHEDULE "Write schedule"
56
#define BLE_CHAR_LIST_SCHEDULE "List schedule"
57
#define BLE_CHAR_HARDWARE_REVISION "Hardware Revision"
58
#define BLE_CHAR_FIRMWARE_REVISION "Firmware Revision"
59
#define BLE_CHAR_SOFTWARE_REVISION "Software Revision"
60
#define BLE_CHAR_MAC_ADDRES "MAC Address"
61
#define BLE_CHAR_SETUP_KEY "Setup Encryption Key"
62
#define BLE_CHAR_GOTO_DFU "GoTo DFU"
63
64
#define STR_HANDLE_COMMAND "Handle command "
65
#define STR_ENABLE "Enable"
66
#define STR_DISABLE "Disable"
67
#define STR_FAILED "Failed"
68
69
// TODO: A lot of repetition, what is the difference between BLE_CHAR_HARDWARE_REVISION and STR_CHAR_HARDWARE_REVISION
70
//#define STR_CROWNSTONE "Crownstone"
71
#define STR_CHAR_CONTROL "Control"
72
#define STR_CHAR_RESULT "Result"
73
#define STR_CHAR_MESH "Mesh"
74
#define STR_CHAR_CONFIGURATION "Configuration"
75
#define STR_CHAR_STATE "State"
76
#define STR_CHAR_SESSION_DATA "Session data"
77
#define STR_CHAR_FACTORY_RESET "Recovery"
78
79
#define STR_CHAR_NEW_ALERT "New Alert"
80
#define STR_CHAR_HARDWARE_REVISION "Hardware Revision"
81
#define STR_CHAR_FIRMWARE_REVISION "Firmware Revision"
82
#define STR_CHAR_SOFTWARE_REVISION "Software Revision"
83
#define STR_CHAR_STATE_CONTROL "State Control"
84
#define STR_CHAR_TEMPERATURE "Temperature"
85
#define STR_CHAR_RESET "Reset"
86
#define STR_CHAR_RSSI "Signal Strength"
87
#define STR_CHAR_SCAN_DEVICES "Scan Devices"
88
#define STR_CHAR_TRACKED_DEVICE "Tracked Devices"
89
#define STR_CHAR_PWM "PWM"
90
#define STR_CHAR_RELAY "Relay"
91
#define STR_CHAR_POWER_SAMPLE "Power Sample"
92
#define STR_CHAR_CURRENT_CONSUMPTION "Current Consumption"
93
#define STR_CHAR_CURRENT_TIME "Current Time"
94
#define STR_CHAR_SCHEDULE "Schedule"
95
#define STR_CHAR_MAC_ADDRESS "MAC Address"
96
#define STR_CHAR_SETUP_KEY "Setup Encryption Key"
97
#define STR_CHAR_GOTO_DFU "GoTo DFU"
98
99
#define STR_CREATE_ALL_SERVICES "Create all services"
100
101
#define STR_ERR_BUFFER_NOT_LARGE_ENOUGH "Buffer not large enough!"
102
#define STR_ERR_ALLOCATE_MEMORY "Could not allocate memory!"
103
#define STR_ERR_VALUE_TOO_LONG "Value too long!"
104
#define STR_ERR_FORGOT_TO_ASSIGN_STACK "Forgot to assign stack!"
105
#define STR_ERR_ALREADY_STOPPED "Already stopped!"
106
#define STR_ERR_MULTIPLE_OF_16 "Data must be multiple of 16B"
107
#define STR_ERR_NOT_INITIALIZED "Not initialized"
108
113
#define MSG_NAME_TOO_LONG "Name is too long."
114
#define MSG_STACK_UNDEFINED "Stack is undefined."
115
#define MSG_BUFFER_IS_LOCKED "Buffer is locked."
116
#define MSG_CHAR_VALUE_UNDEFINED "Characteristic value is undefined"
117
#define MSG_CHAR_VALUE_WRITE "Characteristic value is being written"
118
#define MSG_CHAR_VALUE_WRITTEN "Characteristic value is written"
119
#define MSG_MESH_MESSAGE_WRITE "Mesh message being written"
120
#define MSG_FIRMWARE_UPDATE "Firmware, perform update"
121
#define MSG_RESET "Reset"
122
123
#define MSG_BLE_CHAR_TOO_MANY "Error characteristic: Too many added to single service"
124
#define MSG_BLE_CHAR_CREATION_ERROR "Error characteristic: Creation"
125
#define MSG_BLE_CHAR_CANNOT_FIND "Error characteristic: Cannot find"
126
#define MSG_BLE_CHAR_INITIALIZED "Error characteristic: Already initialized"
127
#define MSG_BLE_SOFTDEVICE_RUNNING "Softdevice is already running"
128
#define MSG_BLE_SOFTDEVICE_INIT "Softdevice init"
129
#define MSG_BLE_SOFTDEVICE_ENABLE "Softdevice enable"
130
#define MSG_BLE_SOFTDEVICE_ENABLE_GAP "Softdevice enable GAP"
131
#define MSG_BLE_ADVERTISING_STARTING "Start advertising"
132
#define MSG_BLE_ADVERTISING_STARTED "Advertising started"
133
#define MSG_BLE_ADVERTISING_STOPPED "Advertising stopped"
134
#define MSG_BLE_NO_CUSTOM_SERVICES "Services, no custom ones!"
135
#define MSG_BLE_ADVERTISEMENT_TOO_BIG "Advertisement too big"
136
#define MSG_BLE_ADVERTISEMENT_CONFIG_INVALID "Advertisement invalid config"
137
#define MSG_BLE_STACK_INITIALIZED "Stack already initialized"
138
139
#define FMT_SERVICE_INIT "Init service "
140
#define FMT_CHAR_ADD "Added characteristic "
141
//#define FMT_CHAR_SKIP "Characteristic %s skipped"
142
//#define FMT_CHAR_REMOVED "Characteristic %s removed"
143
#define FMT_CHAR_EXISTS "Characteristic exists "
144
//#define FMT_CHAR_DOES_NOT_EXIST "Characteristic %s does not exist"
145
146
#define FMT_WRONG_PAYLOAD_LENGTH "Wrong payload length received: %u (should be %u)"
147
#define FMT_ZERO_PAYLOAD_LENGTH "Wrong payload length received: %u (should not be zero)"
148
//#define FMT_SELECT_TYPE "Select %s type: %d"
149
//#define FMT_WRITE_TYPE "Write %s type: %d"
150
151
#define FMT_HEADER "---- "
152
#define FMT_CREATE "Create "
153
#define FMT_INIT "Init "
154
#define FMT_ENABLE "Enable "
155
#define FMT_START "Start "
156
#define FMT_STOP "Stop "
157
#define FMT_NOT_INITIALIZED "Not initialized "
158
//#define FMT_ALREADY_INITIALIZED "%s already initialized!"
159
//#define FMT_ERR_EXPECTED "Expected %s"
160
//#define FMT_ERR_EXPECTED_RECEIVED "Expected length %d, received: %d"
161
//#define FMT_SET_INT_TYPE_VAL "Set type=%d to %d"
162
//#define FMT_SET_INT_VAL "Set %s to %d"
163
//#define FMT_SET_FLOAT_TYPE_VAL "Set type=%d to %f"
164
//#define FMT_SET_FLOAT_VAL "Set %s to %f"
165
//#define FMT_SET_STR_TYPE_VAL "Set type=%d to %s"
166
//#define FMT_SET_STR_VAL "Set %s to %s"
167
//#define FMT_GET_INT_VAL "Get %s: %d"
168
//#define FMT_GET_STR_VAL "Get %s: %s"
169
170
#define FMT_CONFIGURATION_NOT_FOUND "There is no such configuration type (%d)."
171
#define FMT_STATE_NOT_FOUND "There is no such state variable (%d)."
172
#define FMT_VERIFICATION_FAILED "Verification failed (%d)"
173
174
#define FMT_USE_DEFAULT_VALUE "Use default value"
175
#define FMT_FOUND_STORED_VALUE "Found stored value: %d"
176
#define FMT_RAW_VALUE "Raw value: %02X %02X %02X %02X"
177
178
//#define FMT_BUFFER_NOT_ASSIGNED "%s buffer not assigned!"
179
//#define FMT_BUFFER_FULL "%s buffer full!"
180
181
//#define FMT_FAILED_TO "Failed to %s (%d)"
182
#define FMT_ALREADY "Already "
183
184
//#define FMT_BLE_CONFIGURE_AS "Configuring as %s"
185
186
#define FMT_ALLOCATE_MEMORY "Allocated memory at %p"
187
#define FMT_ERR_ASSIGN_BUFFER "Could not assign buffer at %p with size %d"
188
#define FMT_ASSIGN_BUFFER_LEN "Assign buffer at %p, len: %d"
source
include
cfg
cs_Strings.h
Generated by
1.9.5