Simple task I thought - buy MKR1400 GSM - upload sketch, send SMS. No, not to be. I tried the web client - that doesn't see the device on com port. Then I tried the IDE client - it sees the COM port but keeps dropping it. The sketch I have uses a secret tab - not created automatically in IDE - so how do you do that? Back to the web client- that just sucks, so now MKR1400 in the bin - unless someone can help?
Is it that difficult to copy a sketch - save it, verify it, upload it? Have I just been duped into buying a load of junk - or do these things actually work?
Devices like this are thoroughly tested in development. So you might be missing some steps, or there might be some issue with your computer.
You haven't provided much information. For example, what is this mystery sketch you talk about?
First of all, if you download your sketch from Arduino Web Editor, then it will contain the equivalent to the "Secret" tab:
- Click the ••• button to the right of the board selector.
- Select "Download Sketch" from the menu.
- Wait for download to finish.
- Unzip the downloaded file.
- Open the sketch in the Arduino IDE.
For security, the values of the secrets are not downloaded, so you will need to fill them back in. In the Arduino IDE, the tab will be named arduino_secrets.h instead of "Secret", and it will contain C++ code instead of a form.
But if you do want to create the equivalent to a Secret tab yourself using the Arduino IDE, you can follow these instructions:
- Click the ▼ button on the right side of the tab bar in the Arduino IDE.
- Select "New Tab" from the menu.
- In the "Name for new file" field, type
arduino_secrets.h - Click the OK button.
- Add this line to your main sketch file:
#include <arduino_secrets.h>
Thanks for the reply - the main issue I have at the moment is the lack of connectivity. I can connect on Com4 no problem - upload the sketch - all seems ok, then at the end it is restarting in bootloader and flashing with command... then No device found on Com port. I have to unplug to get it to recognise the com port again
That's common if not "normal" with DFU programmed devices. Get used to it.
So I get no connection, cant run the Monitor. This is what I get when I upload the sketch:
Upload started
Programming with: Serial
Restarting in bootloader mode
Flashing with command:C:/Users/Tomas/.arduino-create/arduino/bossac/1.7.0-arduino3/bossac.exe -i -d --port=COM4 -U true -i -e -w -v C:/Users/Tomas/AppData/Local/Temp/arduino-create-agent399553357/GsmScanNetworks.bin -R
No device found on COM4
Loading Monitor says Serial Port is busy - in Device Manager I can see USB Serial Device (Com4) - doesn't mention Arduino? SHould it?
Is that after unplugging and plugging back in, as mentioned above? I thought you said that it reconnected when you did that.
Looks like com port was the issue - tried ports at back of PC and things seem a bit more stable - dull! Thanks for suggestions