Comments (8)
OK no problem, the readme is a bit dense so it's easy to miss something, it's good to here where dev's miss stuff so I can optimize the documentation and add highlighting to key areas. I'll look at the rreadme and add an emphasis on a few things so hopefully others don't miss this. Closing out the issue.
from mkr1000-iotc.
Can you look at what version of the Arduino IDE you are using please, also if you can let me know OS you are using that would be useful. I'm using version 1.8.8 on Windows 10 and not seeing these issues when compiling the code. I compiled the code as it is in the repo and also by adding in the const and both compiled fine.
So this is leading me to believe there may be some changes between Arduino IDE versions and I'm on a newer version. I have seen both these issues before when compiling for other boards, for example the Uno WiFi Rev2 does not like PROGMEM as it has I believe unified flash and also gives the fcvt error from the dtostrf function in util.h to do float to string conversion.
If you can provide me some more information I'll keep working the issue. Thanks!
from mkr1000-iotc.
I am using Arduino 1.8.5 on Windows 10. I start by upgrading to 1.8.8.
Thanks!
from mkr1000-iotc.
let me know if the newer version fixes the issue then I'll update the readme so others can avoid this pitfall :-)
from mkr1000-iotc.
User error I missed this in the log earlier.
Arduino: 1.8.8 (Windows 10), Board: "Arduino/Genuino Uno"
I changed it to Arduino/MKR1000 and it worked.
Thanks
from mkr1000-iotc.
I am getting the same 'fcvt' was not declared in this scope
error. I've updated to the latest version of the IDE (1.8.9) and have verified that the board is Arduino/Genuino MKR 1000. I am not seeing the "must be const" error though.
I tried adding #include <stdlib.h>
to the top of utils.h
, but nothing changed.
from mkr1000-iotc.
Fixed by adding #include <avr/dtostrf.h>
to the top of mkr10x0_iotc.ino
and commenting out the function dtostrf
in utils.h
. I'll make a PR for that change as well.
from mkr1000-iotc.
Hi Guys, I was able to run this and resolce the mqtt failed, rc=-2 by updating the firmware and choosing actually the NINA firmware (1.2.3) (Arduino MKR Wifi 1010) if you are using the MKR 1010 like me.
from mkr1000-iotc.
Related Issues (11)
- MKR 1010 Getting a -2 Return Code HOT 3
- mqtt failed, rc=-2 on MKR1010 HOT 1
- avr/pgmspace.h: No such file or directory
- Compilation error: 'fcvt' was not declared in this scope
- ---> mqtt failed, rc=-2 issue on MKR1000 HOT 6
- Add support for group enrollments HOT 2
- compilation error HOT 1
- MKR GSM 1400, compile error
- ---> mqtt failed, rc=5 HOT 1
- mqtt failed, rc=-1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkr1000-iotc.