Skip to content

Commit 6348b57

Browse files
ilcatomattiabertorello
authored andcommitted
Changed order of addPropertyReal params for better compatibility with existing sketches
1 parent 2fbe4d5 commit 6348b57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
*.bin
22
*.elf
33
*~
4-
4+
.vscode

src/ArduinoIoTCloud.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class ArduinoIoTCloudClass {
100100

101101

102102
template<typename T, typename N=T>
103-
void addPropertyReal(T & property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, void(*synFn)(ArduinoCloudProperty<T> property) = CLOUD_WINS, N minDelta = N(0)) {
103+
void addPropertyReal(T & property, String name, permissionType permission_type = READWRITE, long seconds = ON_CHANGE, void(*fn)(void) = NULL, N minDelta = N(0), void(*synFn)(ArduinoCloudProperty<T> property) = CLOUD_WINS) {
104104
Permission permission = Permission::ReadWrite;
105105
if (permission_type == READ ) permission = Permission::Read;
106106
else if(permission_type == WRITE) permission = Permission::Write;

0 commit comments

Comments
 (0)