Getting error while compiling arduino cloud related codes

Arduino: 1.8.12 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cborpretty.c: In function 'hexDump':
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cborpretty.c:195:32: error: expected ')' before '__INT8'
** 195 | err = stream(out, "%02" PRIx8, buffer++);*
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cborpretty.c: In function 'utf8EscapedDump':
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cborpretty.c:251:39: error: expected ')' before '__INT32'
** 251 | err = stream(out, "\u%04" PRIX32 "\u%04" PRIX32,**
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cborpretty.c:257:39: error: expected ')' before '__INT32'
** 257 | err = stream(out, "\u%04" PRIX32, uc);**
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cborpretty.c: In function 'value_to_pretty':
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cborpretty.c:382:34: error: expected ')' before '__INT64'
** 382 | err = stream(out, "%" PRIu64, val);**
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cborpretty.c:387:39: error: expected ')' before '__INT64'
** 387 | err = stream(out, "-%" PRIu64, val);**
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cborpretty.c:457:30: error: expected ')' before '__INT64'
** 457 | err = stream(out, "%" PRIu64 "%s(", tag, get_indicator(it, flags));**
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cborpretty.c:473:37: error: expected ')' before '__INT8'
** 473 | err = stream(out, "simple(%" PRIu8 ")", simple_type);**
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cborpretty.c:531:36: error: expected ')' before '__INT64'
** 531 | err = stream(out, "%s%" PRIu64 ".%s", val < 0 ? "-" : "", ival, suffix);**
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cbortojson.c: In function 'add_value_metadata':
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cbortojson.c:297:39: error: expected ')' before '__INT64'
** 297 | if (fprintf(out, ""tag":"%" PRIu64 ""%s", status->lastTag,**
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cbortojson.c:316:40: error: expected ')' before '__INT64'
** 316 | if (fprintf(out, ","v":"%c%" PRIx64 """, flags & NumberWasNegative ? '-' : '+',**
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cbortojson.c: In function 'tagged_value_to_json':
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cbortojson.c:351:35: error: expected ')' before '__INT64'
** 351 | if (fprintf(out, "{"tag%" PRIu64 "":", tag) < 0)**
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cbortojson.c:359:39: error: expected ')' before '__INT64'
** 359 | if (fprintf(out, ","tag%" PRIu64 "$cbor":{", tag) < 0 ||**
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cbortojson.c: In function 'value_to_json':
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cbortojson.c:578:38: error: expected ')' before '__INT8'
** 578 | if (fprintf(out, ""simple(%" PRIu8 ")"", simple_type) < 0)**
** | ^**
** | )**
C:\Users\jamsa\OneDrive\Documents\Arduino\libraries\ArduinoIoTCloud\src\cbor\lib\tinycbor\src\cbortojson.c:637:39: error: expected ')' before '__INT64'
** 637 | r = fprintf(out, "%s%" PRIu64, val < 0 ? "-" : "", ival);**
** | ^**
** | )**
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

please can anyone tell us? which lib version I need to remove this error.
the current version of my ArduinoIotcloud lib is 1.0.2

In order to make all relevant information available to all who are interested in this subject, I'll share a link to the related report at:

There may be some valuable discussion there.

Ok so i found solution of this problem:

If you are using ArduinoIotCloud 1.0.2v of lib , you need ESP8266 V2.7.4 For it

Go and enjoy Arduino IOT Cloud like me :wink:

1 Like