File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ class ArduinoCloudPropertyGeneric
45
45
virtual bool newData () = 0;
46
46
virtual bool shouldBeUpdated () = 0;
47
47
virtual void updateShadow () = 0;
48
- virtual bool canRead ();
48
+ virtual bool canRead () = 0;
49
+ virtual void printinfo () = 0;
49
50
virtual ArduinoCloudPropertyGeneric& onUpdate (void (*fn)(void )) = 0;
50
51
virtual ArduinoCloudPropertyGeneric& publishEvery (long seconds) = 0;
51
52
void (*callback)(void ) = NULL ;
@@ -67,6 +68,10 @@ class ArduinoCloudProperty : public ArduinoCloudPropertyGeneric
67
68
return false ;
68
69
}
69
70
71
+ void printinfo () {
72
+ Serial.println (" name: " + name + " value: " + String (property) + " shadow: " + String (shadow_property) + " permission: " + String (permission));
73
+ }
74
+
70
75
void updateShadow () {
71
76
shadow_property = property;
72
77
}
You can’t perform that action at this time.
0 commit comments