How to send http request using wifi of Arduino primo board

Hi , I have bought an Arduino primo board. I have configured it to connect to my wifi router and changed to STA mode. Now, how do I program it to send HTTP request to a server? Which library file I should use? any tutorial

With Arduino Primo use the WiFi Link library. Look at WiFi Link Examples in IDE menu.

Arduino org web archive pages

Juraj,

I saw the Wifi Link in “Manage Library” menu, but even after installing it, I get errors compiling when I use

#include <WiFi.h>.

I also used the Boards Manager to install Arduino nRF52 Boards version 1.0.2 but to no avail.

I was able to set up and establish a Wifi network as shown in the Starters Guide, but that’s as far as I am able to go. I am using Version 1.8.2 to compile.

I see no example sketches specified for Arduino Primo WiFi operations. I looked in the Arduino org web archive pages you provided a link for, but saw nothing helpful. I tried to run the Example "ConnectNoEncription but it did not compile for the Primo (WiFi.h problem).

I don’t mind digging for answers but I have no frame of reference to know what is specific for use with the Primo. My experience is just programming the Uno to control lights, LCD displays etc. This is a whole new ballgame.

Any help wpuld be appreciated. Thanks.

WiFi.h is not WiFi Link.

and what is the problem with nrf52 boards package?

https://www.arduino.cc/en/Guide/ArduinoPrimo

Thanks for responding.

Your message was very helpful. It took a while but I finally realized the difference between WiFi and Wifi Link. My problem was my version of Arduino wasn't updated enough to show WiFi Link Examples.

Now I have 2 main problems;

  1. I did everything in the Startup Guide and got the Primo boards wifi transmitting, but it won't stay switched to STA Mode (every time I cycle power, it switches back to AP+STA).

  2. I do not know what you mean by "nrf52 boards package". The board came with no documentation and I see nothing in the Guide you referred me to that is entitled nrf52... anything.

Plus it seems to take forever (50 seconds) to compile ConnectNoEncryption, for example, not to mention all the uploading debug warnings.

Still, I have made progress and have you to thank.

Best Wishes

DaleScott: 1. I did everything in the Startup Guide and got the Primo boards wifi transmitting, but it won't stay switched to STA Mode (every time I cycle power, it switches back to AP+STA).

it is a bug in WiFi Link version installed in Primo. but the procedure for upgrading it doesn't exist for Primo as far as I know. it could be made OTA, but if it fails, the WiFi part of the board would be lost.

DaleScott: 2. I do not know what you mean by "nrf52 boards package". The board came with no documentation and I see nothing in the Guide you referred me to that is entitled nrf52... anything.

did you look at the new guide on arduino.cc?

|500x281

DaleScott: Plus it seems to take forever (50 seconds) to compile ConnectNoEncryption, for example, not to mention all the uploading debug warnings.

first compilation after openning the IDE can take a while

Thanks for the reply.

The Primo Wifi is connected to my WiFi network. I get a WiFi signal (see it on my iPhone), but concerned that without STA Mode, I am opening my network up to being hacked. Network has WPA, but Starter Guide says safe operation requires setting STA Mode.

Yes, I loaded the latest board manager (as of 1/4/18) in. May have not done it before enabling WiFi on the board so maybe I should retry. Thanks for the good idea, I'll look into that.

It does look like Arduino isn't supporting the Primo as completely as their other boards. I don't know how to use library routines unless there is an example that shows how. Is there a way to see how to talk to WiFi Link routines other than the couple of examples shown in the IDE? I found descriptions for Wifi in the reference section (I think), but not for WiFi Link.

Thanks for helping. If there is a guide that can answer my questions (so I don't have to bother you), let me know. :)

Primo was developed by Arduino.org and they did not finish the software and documentation. Google 'arduino wars'. Arduino.cc only copied existing software and docs.

I bought an Arduino Uno WiFi last year. It was in same unfinished state with software and docs, but I finished it and support it to some extent. It runs with WiFi Link after upgrading, So I improve and support WiFi Link too. One of the fixes by me is the remembering of mode STA only.

The big problem of esp8266 on Primo is missing recovery procedure for safe upgrading of WiFi Link. It could be done OTA, but if it fails I do not know if someone knows how to flash it over the connections on the board.

Juraj,

Your discussion of OTA link came up in an article I ran across. Hope it is helpful.

https://www.2bitornot2bit.com/blog/arduino-bootloader-with-ota-over-the-air-support-over-nrf24l01