File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 2121
2222#include < ArduinoIoTCloud.h>
2323
24+ /* *****************************************************************************
25+ CTOR/DTOR
26+ ******************************************************************************/
27+
28+ ArduinoIoTCloudClass::ArduinoIoTCloudClass ()
29+ : _connection{nullptr }
30+ , _time_service(ArduinoIoTCloudTimeService())
31+ , _tz_offset{0 }
32+ , _tz_dst_until{0 }
33+ , _thing_id{" " }
34+ , _device_id{" " }
35+ , _cloud_event_callback{nullptr }
36+ {
37+
38+ }
39+
2440/* *****************************************************************************
2541 * PUBLIC MEMBER FUNCTIONS
2642 ******************************************************************************/
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ class ArduinoIoTCloudClass
8080{
8181 public:
8282
83+ ArduinoIoTCloudClass ();
8384 virtual ~ArduinoIoTCloudClass () { }
8485
8586
@@ -145,19 +146,19 @@ class ArduinoIoTCloudClass
145146
146147 protected:
147148
148- ConnectionHandler * _connection = nullptr ;
149+ ConnectionHandler * _connection;
149150 PropertyContainer _property_container;
150- TimeService & _time_service = ArduinoIoTCloudTimeService() ;
151- int _tz_offset = 0 ;
152- unsigned int _tz_dst_until = 0 ;
151+ TimeService & _time_service;
152+ int _tz_offset;
153+ unsigned int _tz_dst_until;
153154
154155 void execCloudEventCallback (ArduinoIoTCloudEvent const event);
155156
156157 private:
157158
158- String _thing_id = " " ;
159- String _device_id = " " ;
160- OnCloudEventCallback _cloud_event_callback[3 ] = { nullptr } ;
159+ String _thing_id;
160+ String _device_id;
161+ OnCloudEventCallback _cloud_event_callback[3 ];
161162};
162163
163164#ifdef HAS_TCP
You can’t perform that action at this time.
0 commit comments