@@ -107,33 +107,35 @@ class ArduinoIoTCloudClass
107
107
* name of the property to identify a given property within a CBOR message.
108
108
*/
109
109
110
- void addPropertyReal (Property& property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS);
111
- void addPropertyReal (bool & property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS);
112
- void addPropertyReal (float & property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS);
113
- void addPropertyReal (int & property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0, void(*synFn)(Property & property) = CLOUD_WINS);
114
- void addPropertyReal (String& property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS);
110
+ void addPropertyReal (Property& property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated( " Use addProperty(property, Permission::ReadWrite) instead. " ))) ;
111
+ void addPropertyReal (bool & property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated( " Use addProperty(property, Permission::ReadWrite) instead. " ))) ;
112
+ void addPropertyReal (float & property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated( " Use addProperty(property, Permission::ReadWrite) instead. " ))) ;
113
+ void addPropertyReal (int & property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated( " Use addProperty(property, Permission::ReadWrite) instead. " ))) ;
114
+ void addPropertyReal (String& property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated( " Use addProperty(property, Permission::ReadWrite) instead. " ))) ;
115
115
116
+ Property& addPropertyReal (Property& property, String name, Permission const permission);
116
117
Property& addPropertyReal (bool & property, String name, Permission const permission);
117
118
Property& addPropertyReal (float & property, String name, Permission const permission);
118
119
Property& addPropertyReal (int & property, String name, Permission const permission);
119
- Property& addPropertyReal (String& property, String name, int tag, Permission const permission);
120
+ Property& addPropertyReal (String& property, String name, Permission const permission);
120
121
121
122
/* The following methods are for MKR WAN 1300/1310 LoRa boards since
122
123
* they use a number to identify a given property within a CBOR message.
123
124
* This approach reduces the required amount of data which is of great
124
125
* important when using LoRa.
125
126
*/
126
127
127
- void addPropertyReal (Property& property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS);
128
- void addPropertyReal (bool & property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS);
129
- void addPropertyReal (float & property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS);
130
- void addPropertyReal (int & property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0, void(*synFn)(Property & property) = CLOUD_WINS);
131
- void addPropertyReal (String& property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS);
128
+ void addPropertyReal (Property& property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated( " Use addProperty(property, Permission::ReadWrite) instead. " ))) ;
129
+ void addPropertyReal (bool & property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated( " Use addProperty(property, Permission::ReadWrite) instead. " ))) ;
130
+ void addPropertyReal (float & property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated( " Use addProperty(property, Permission::ReadWrite) instead. " ))) ;
131
+ void addPropertyReal (int & property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated( " Use addProperty(property, Permission::ReadWrite) instead. " ))) ;
132
+ void addPropertyReal (String& property, String name, int tag, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void (*fn)(void ) = NULL, float minDelta = 0.0f, void(*synFn)(Property & property) = CLOUD_WINS) __attribute__((deprecated( " Use addProperty(property, Permission::ReadWrite) instead. " ))) ;
132
133
134
+ Property& addPropertyReal (Property& property, String name, int tag, Permission const permission);
133
135
Property& addPropertyReal (bool & property, String name, int tag, Permission const permission);
134
136
Property& addPropertyReal (float & property, String name, int tag, Permission const permission);
135
137
Property& addPropertyReal (int & property, String name, int tag, Permission const permission);
136
- Property& addPropertyReal (String& property, String name, Permission const permission);
138
+ Property& addPropertyReal (String& property, String name, int tag, Permission const permission);
137
139
138
140
protected:
139
141
0 commit comments