You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixing compiler warnings due to stronger compile-time checks (#69)
* Fixing issues uncovered by stronger compiler warnings
* Adding const qualifier for parameter 'char * fmt' -> 'const char * fmt' thereby eliminating -Wwrite-strings warnings
* Adding missing cases to switch statements
* Removing unused variable 'index'
* Reording initialisation order of ArduinoIoTCloud in order to eliminate '-Wreorder' warnings
* Adding const qualifier for parameter 'char * fmt' -> 'const char * fmt' thereby eliminating -Wwrite-strings warnings
* Prefixing 'connection' with an underscore -> '_connection' in order to be consistent with all other member variables
* Preventing multiple definitions of SECRET_PASS mutually overwriting one another by prefixing the correct connection type
* Changing type of timeout intervals to type unsigned long - otherwise there is a type inconsistency and probable bug when checking the connection time interval
* Removing duplicate ERROR case
* Adding missing cases and simplifying code
* Changing type of timeout intervals to type unsigned long - otherwise there is a type inconsistency and probable bug when checking the connection time interval
* Using default clause for missing switch statements (no constant defined for state DISCONNECTING)
* Fix -Wreorder error
* Simplifying WifiConnectionManager
* Replacing '#warning' with '#pragma message'
* Fixing comparison between unsigned and signed type
* Ignoring error stemming from warning about deprecated functions
* Rectifying signed/unsigned comparison
* char * arrays should be compared via strcmp
* Commenting out unused parameters in order to prevent -Wunused-parameter
* Removing unused variable connection buffer
* Adding missing switch cases
* Correct initlisation of struct tm t
* Correct printf specifier for unsigned long it is %lu
* Adding missing initializer for tm_isdst
* Performing cast in order to guarantuee correct comparison
* Fixing formatting
* Disabling '-Wunused-variable' to prevent false positives
* Removing prefix 'WIFI_' and 'GSM_' because Arduino Create is looking for 'SECRET_SSID', 'SECRET_PASS', etc. when importing a example project into Arduino Create
* Correcting comment
* Removing prefix of parameter 'newState' wherever used, since prefixes usually indicate class members
* Consting parameter 'newState' - defensive programming
Copy file name to clipboardExpand all lines: src/ArduinoIoTCloud.h
+5-4
Original file line number
Diff line number
Diff line change
@@ -91,8 +91,9 @@ class ArduinoIoTCloudClass {
91
91
inlinevoidupdate() {
92
92
update(NULL);
93
93
}
94
-
voidupdate(CallbackFunc onSyncCompleteCallback) __attribute__((deprecated)); /* Attention: Function is deprecated - use 'addCallback(ArduinoIoTCloudConnectionEvent::SYNC, &onSync)' for adding a onSyncCallback instead */
95
-
94
+
inlinevoidupdate(CallbackFunc onSyncCompleteCallback) __attribute__((deprecated)) { /* Attention: Function is deprecated - use 'addCallback(ArduinoIoTCloudConnectionEvent::SYNC, &onSync)' for adding a onSyncCallback instead */
0 commit comments