@@ -111,7 +111,7 @@ void BytebeamArduino::initActionHandlerArray() {
111
111
this ->actionFuncsHandlerIdx = -1 ;
112
112
}
113
113
114
- boolean BytebeamArduino::subscribe (const char * topic, uint8_t qos) {
114
+ bool BytebeamArduino::subscribe (const char * topic, uint8_t qos) {
115
115
//
116
116
// skipping the connection checking here as we are not calling this function directly
117
117
//
@@ -125,7 +125,7 @@ boolean BytebeamArduino::subscribe(const char* topic, uint8_t qos) {
125
125
}
126
126
}
127
127
128
- boolean BytebeamArduino::unsubscribe (const char * topic) {
128
+ bool BytebeamArduino::unsubscribe (const char * topic) {
129
129
//
130
130
// skipping the connection checking here as we are not calling this function directly
131
131
//
@@ -139,7 +139,7 @@ boolean BytebeamArduino::unsubscribe(const char* topic) {
139
139
}
140
140
}
141
141
142
- boolean BytebeamArduino::publish (const char * topic, const char * payload) {
142
+ bool BytebeamArduino::publish (const char * topic, const char * payload) {
143
143
//
144
144
// skipping the connection checking here as we are not calling this function directly
145
145
//
@@ -153,7 +153,7 @@ boolean BytebeamArduino::publish(const char* topic, const char* payload) {
153
153
}
154
154
}
155
155
156
- boolean BytebeamArduino::subscribeToActions () {
156
+ bool BytebeamArduino::subscribeToActions () {
157
157
// before going ahead make sure you are connected
158
158
if (!PubSubClient::connected ()) {
159
159
BytebeamLogger::Error (__FILE__, __func__, " subscribe to actions failed, bytebeam client is not connected to the cloud" );
@@ -177,7 +177,7 @@ boolean BytebeamArduino::subscribeToActions() {
177
177
return subscribe (topic, qos);
178
178
}
179
179
180
- boolean BytebeamArduino::unsubscribeToActions () {
180
+ bool BytebeamArduino::unsubscribeToActions () {
181
181
// before going ahead make sure you are connected
182
182
if (!PubSubClient::connected ()) {
183
183
BytebeamLogger::Error (__FILE__, __func__, " unsubscribe to actions abort, bytebeam client is not connected to the cloud" );
@@ -199,7 +199,7 @@ boolean BytebeamArduino::unsubscribeToActions() {
199
199
return unsubscribe (topic);
200
200
}
201
201
202
- boolean BytebeamArduino::publishActionStatus (char * actionId, int progressPercentage, char * status, char * error) {
202
+ bool BytebeamArduino::publishActionStatus (char * actionId, int progressPercentage, char * status, char * error) {
203
203
//
204
204
// skipping the connection checking here as we are not calling this function directly
205
205
//
@@ -247,7 +247,7 @@ boolean BytebeamArduino::publishActionStatus(char* actionId, int progressPercent
247
247
}
248
248
249
249
#ifdef BYTEBEAM_ARDUINO_ARCH_SUPPORTS_FS
250
- boolean BytebeamArduino::readDeviceConfigFile () {
250
+ bool BytebeamArduino::readDeviceConfigFile () {
251
251
252
252
/* This file system pointer will store the address of the selected file system, So after begin and end operations
253
253
* we can utilize this file system pointer to do the file operations.
@@ -413,7 +413,7 @@ boolean BytebeamArduino::publishActionStatus(char* actionId, int progressPercent
413
413
}
414
414
#endif
415
415
416
- boolean BytebeamArduino::parseDeviceConfigFile () {
416
+ bool BytebeamArduino::parseDeviceConfigFile () {
417
417
// before going ahead make sure you are parsing something
418
418
if (this ->deviceConfigStr == NULL ) {
419
419
BytebeamLogger::Error (__FILE__, __func__, " device config file is empty" );
@@ -468,7 +468,7 @@ boolean BytebeamArduino::parseDeviceConfigFile() {
468
468
return true ;
469
469
}
470
470
471
- boolean BytebeamArduino::setupBytebeamClient () {
471
+ bool BytebeamArduino::setupBytebeamClient () {
472
472
473
473
/* Setting up the bytebeam secure wifi client based on the architecture and before this make sure you have
474
474
* the same secure wifi client object inside the class defination.
@@ -565,7 +565,7 @@ void BytebeamArduino::clearBytebeamClient() {
565
565
BytebeamLogger::Info (__FILE__, __func__, " DISCONNECTED" );
566
566
}
567
567
568
- boolean BytebeamArduino::initSDK () {
568
+ bool BytebeamArduino::initSDK () {
569
569
// It's much better to pump up architecture inforamtion in the very beginning
570
570
printArchitectureInfo ();
571
571
@@ -624,7 +624,7 @@ boolean BytebeamArduino::initSDK() {
624
624
return true ;
625
625
}
626
626
627
- boolean BytebeamArduino::isInitialized () {
627
+ bool BytebeamArduino::isInitialized () {
628
628
// return the client status i.e initialized or de-initialized
629
629
return this ->isClientActive ;
630
630
}
@@ -664,7 +664,7 @@ BytebeamArduino::~BytebeamArduino() {
664
664
}
665
665
666
666
#ifdef BYTEBEAM_ARDUINO_USE_WIFI
667
- boolean BytebeamArduino::begin ( const deviceConfigFileSystem fileSystem,
667
+ bool BytebeamArduino::begin ( const deviceConfigFileSystem fileSystem,
668
668
const char * fileName,
669
669
BytebeamLogger::DebugLevel level) {
670
670
// set the device config file system
@@ -700,7 +700,7 @@ BytebeamArduino::~BytebeamArduino() {
700
700
#endif
701
701
702
702
#ifdef BYTEBEAM_ARDUINO_USE_MODEM
703
- boolean BytebeamArduino::begin ( TinyGsm* modem,
703
+ bool BytebeamArduino::begin ( TinyGsm* modem,
704
704
const deviceConfigFileSystem fileSystem,
705
705
const char * fileName,
706
706
BytebeamLogger::DebugLevel level) {
@@ -745,7 +745,7 @@ BytebeamArduino::~BytebeamArduino() {
745
745
}
746
746
#endif
747
747
748
- boolean BytebeamArduino::loop () {
748
+ bool BytebeamArduino::loop () {
749
749
// client should be initialized and if not just log the info to serial and abort :)
750
750
if (!isInitialized ()) {
751
751
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -795,7 +795,7 @@ boolean BytebeamArduino::loop() {
795
795
}
796
796
}
797
797
798
- boolean BytebeamArduino::isConnected () {
798
+ bool BytebeamArduino::isConnected () {
799
799
// client should be initialized and if not just log the info to serial and abort :)
800
800
if (!isInitialized ()) {
801
801
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -806,7 +806,7 @@ boolean BytebeamArduino::isConnected() {
806
806
return PubSubClient::connected ();
807
807
}
808
808
809
- boolean BytebeamArduino::handleActions (char * actionReceivedStr) {
809
+ bool BytebeamArduino::handleActions (char * actionReceivedStr) {
810
810
// client should be initialized and if not just log the info to serial and abort :)
811
811
if (!isInitialized ()) {
812
812
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -938,7 +938,7 @@ boolean BytebeamArduino::handleActions(char* actionReceivedStr) {
938
938
return true ;
939
939
}
940
940
941
- boolean BytebeamArduino::addActionHandler (int (*funcPtr)(char * args, char * actionId), char* actionName) {
941
+ bool BytebeamArduino::addActionHandler (int (*funcPtr)(char * args, char * actionId), char* actionName) {
942
942
// client should be initialized and if not just log the info to serial and abort :)
943
943
if (!isInitialized ()) {
944
944
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -965,7 +965,7 @@ boolean BytebeamArduino::addActionHandler(int (*funcPtr)(char* args, char* actio
965
965
return true ;
966
966
}
967
967
968
- boolean BytebeamArduino::removeActionHandler (char * actionName) {
968
+ bool BytebeamArduino::removeActionHandler (char * actionName) {
969
969
// client should be initialized and if not just log the info to serial and abort :)
970
970
if (!isInitialized ()) {
971
971
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -997,7 +997,7 @@ boolean BytebeamArduino::removeActionHandler(char* actionName) {
997
997
}
998
998
}
999
999
1000
- boolean BytebeamArduino::updateActionHandler (int (*newFuncPtr)(char * args, char * actionId), char* actionName) {
1000
+ bool BytebeamArduino::updateActionHandler (int (*newFuncPtr)(char * args, char * actionId), char* actionName) {
1001
1001
// client should be initialized and if not just log the info to serial and abort :)
1002
1002
if (!isInitialized ()) {
1003
1003
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -1022,7 +1022,7 @@ boolean BytebeamArduino::updateActionHandler(int (*newFuncPtr)(char* args, char*
1022
1022
}
1023
1023
}
1024
1024
1025
- boolean BytebeamArduino::isActionHandlerThere (char * actionName) {
1025
+ bool BytebeamArduino::isActionHandlerThere (char * actionName) {
1026
1026
// client should be initialized and if not just log the info to serial and abort :)
1027
1027
if (!isInitialized ()) {
1028
1028
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -1047,7 +1047,7 @@ boolean BytebeamArduino::isActionHandlerThere(char* actionName) {
1047
1047
}
1048
1048
}
1049
1049
1050
- boolean BytebeamArduino::printActionHandlerArray () {
1050
+ bool BytebeamArduino::printActionHandlerArray () {
1051
1051
// client should be initialized and if not just log the info to serial and abort :)
1052
1052
if (!isInitialized ()) {
1053
1053
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -1069,7 +1069,7 @@ boolean BytebeamArduino::printActionHandlerArray() {
1069
1069
return true ;
1070
1070
}
1071
1071
1072
- boolean BytebeamArduino::resetActionHandlerArray () {
1072
+ bool BytebeamArduino::resetActionHandlerArray () {
1073
1073
// client should be initialized and if not just log the info to serial and abort :)
1074
1074
if (!isInitialized ()) {
1075
1075
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -1081,7 +1081,7 @@ boolean BytebeamArduino::resetActionHandlerArray() {
1081
1081
return true ;
1082
1082
}
1083
1083
1084
- boolean BytebeamArduino::publishActionCompleted (char * actionId) {
1084
+ bool BytebeamArduino::publishActionCompleted (char * actionId) {
1085
1085
// client should be initialized and if not just log the info to serial and abort :)
1086
1086
if (!isInitialized ()) {
1087
1087
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -1103,7 +1103,7 @@ boolean BytebeamArduino::publishActionCompleted(char* actionId) {
1103
1103
}
1104
1104
}
1105
1105
1106
- boolean BytebeamArduino::publishActionFailed (char * actionId) {
1106
+ bool BytebeamArduino::publishActionFailed (char * actionId) {
1107
1107
// client should be initialized and if not just log the info to serial and abort :)
1108
1108
if (!isInitialized ()) {
1109
1109
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -1125,7 +1125,7 @@ boolean BytebeamArduino::publishActionFailed(char* actionId) {
1125
1125
}
1126
1126
}
1127
1127
1128
- boolean BytebeamArduino::publishActionProgress (char * actionId, int progressPercentage) {
1128
+ bool BytebeamArduino::publishActionProgress (char * actionId, int progressPercentage) {
1129
1129
// client should be initialized and if not just log the info to serial and abort :)
1130
1130
if (!isInitialized ()) {
1131
1131
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -1147,7 +1147,7 @@ boolean BytebeamArduino::publishActionProgress(char* actionId, int progressPerce
1147
1147
}
1148
1148
}
1149
1149
1150
- boolean BytebeamArduino::publishToStream (char * streamName, const char * payload) {
1150
+ bool BytebeamArduino::publishToStream (char * streamName, const char * payload) {
1151
1151
// client should be initialized and if not just log the info to serial and abort :)
1152
1152
if (!isInitialized ()) {
1153
1153
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -1176,7 +1176,7 @@ boolean BytebeamArduino::publishToStream(char* streamName, const char* payload)
1176
1176
return publish (topic, payload);
1177
1177
}
1178
1178
1179
- boolean BytebeamArduino::end () {
1179
+ bool BytebeamArduino::end () {
1180
1180
// client should be initialized and if not just log the info to serial and abort :)
1181
1181
if (!isInitialized ()) {
1182
1182
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -1254,7 +1254,7 @@ boolean BytebeamArduino::end() {
1254
1254
}
1255
1255
}
1256
1256
1257
- boolean BytebeamArduino::enableOTA () {
1257
+ bool BytebeamArduino::enableOTA () {
1258
1258
// client should be initialized and if not just log the info to serial and abort :)
1259
1259
if (!isInitialized ()) {
1260
1260
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -1284,7 +1284,7 @@ boolean BytebeamArduino::end() {
1284
1284
return true ;
1285
1285
}
1286
1286
1287
- boolean BytebeamArduino::isOTAEnabled () {
1287
+ bool BytebeamArduino::isOTAEnabled () {
1288
1288
// client should be initialized and if not just log the info to serial and abort :)
1289
1289
if (!isInitialized ()) {
1290
1290
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
@@ -1295,7 +1295,7 @@ boolean BytebeamArduino::end() {
1295
1295
return this ->isOTAEnable ;
1296
1296
}
1297
1297
1298
- boolean BytebeamArduino::disableOTA () {
1298
+ bool BytebeamArduino::disableOTA () {
1299
1299
// client should be initialized and if not just log the info to serial and abort :)
1300
1300
if (!isInitialized ()) {
1301
1301
BytebeamLogger::Error (__FILE__, __func__, " Bytebeam Client is not Initialized." );
0 commit comments