File tree 2 files changed +24
-7
lines changed
2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 21
21
22
22
#include < ArduinoIoTCloud.h>
23
23
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
+
24
40
/* *****************************************************************************
25
41
* PUBLIC MEMBER FUNCTIONS
26
42
******************************************************************************/
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ class ArduinoIoTCloudClass
80
80
{
81
81
public:
82
82
83
+ ArduinoIoTCloudClass ();
83
84
virtual ~ArduinoIoTCloudClass () { }
84
85
85
86
@@ -145,19 +146,19 @@ class ArduinoIoTCloudClass
145
146
146
147
protected:
147
148
148
- ConnectionHandler * _connection = nullptr ;
149
+ ConnectionHandler * _connection;
149
150
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;
153
154
154
155
void execCloudEventCallback (ArduinoIoTCloudEvent const event);
155
156
156
157
private:
157
158
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 ];
161
162
};
162
163
163
164
#ifdef HAS_TCP
You can’t perform that action at this time.
0 commit comments