firedog1024 / mkr1000-iotc

Connecting an Arduino MKR1000 to Azure IoT Central
MIT License
31 stars 13 forks source link

Added condition to load the proper wifi driver for a nano 33 iot #9

Closed cbitter78 closed 9 months ago

cbitter78 commented 4 years ago

When trying to get this to work on an Arduino Nano 33 IOT I ran into issues picking the correct wifi driver and also found that the dtostrf method caused compile errors.

In file included from /Users/cbitter/Documents/Arduino/mkr1000-iotc/mkr10x0_iotc/mkr10x0_iotc.ino:49:0:
sketch/./utils.h: In function 'char* dtostrf(double, int, unsigned int, char*)':
utils.h:7:9: error: 'fcvt' was not declared in this scope
     s = fcvt(value, precision, &decpt, &sign);
         ^~~~
sketch/./utils.h:7:9: note: suggested alternative: 'Oct'
     s = fcvt(value, precision, &decpt, &sign);
         ^~~~
         Oct

Swapping out the function fixed my issues.