[SOLVED] Arduino/Genuino MKR1000

Using Ubidots with MKR1000 works great, after small change in ubidots-arduino-wifi-master:

UbidotsArduino.h:
Change #include <WiFi.h> to #include <WiFi101.h>

That’s it.

2 Likes

@JLeib

Great! Yeah i was watching this special device and its libraries are too similar to Arduino WiFi shield librariees. thank you very much for your contribution.

Best regards,
Metavix

1 Like

i have tried and it keeps failing during verify here is my code, using the MKR1000 board

#include <UbidotsArduino.h>

# include <SPI.h>
# include <WiFi101.h>

#define ID ""
#define TOKEN ""

char ssid[] = "";
char pass[] = "";

int status = WL_IDLE_STATUS;

Ubidots client(TOKEN);

int value = 100;

void setup(){
  Serial.begin(9600);
  while (status != WL_CONNECTED){
    Serial.print("Attempting to connect to SSID: ");
    Serial.println(ssid);
    status = WiFi.begin(ssid, pass);
    delay(10000);
  }
}

void loop(){
  client.add(ID, value);
  client.sendAll();
} 

include SPI.h
include WiFi101.h
include UbidotsArduino.h

Hi David,

  1. please check your ssid and password to connect to your WLAN:
    needs to go here:

    char ssid[] = “”;
    char pass[] = “”;

  2. please check your Ubidots-Token:
    Needs to go here: #define TOKEN ""

  3. please check you Device/Source-ID of the Ubidots-Variable you defined on the web-page:
    Needs to go here: #define ID ""

  4. Be shure to change to #include <Wifi101.h> in UbidotsArduino.h

Check out the Arduino code-generator on the Ubidots-page
Cheers Juergen

i omitted that information since this is a public forum. i do include in the code. i have used the code generator through ubidots. i recieve the following error message

"Arduino: 1.6.11 (Mac OS X), Board: “Arduino/Genuino MKR1000”

In file included from /Users/descobar/Documents/Arduino/sketch_newUbidots/sketch_newUbidots.ino:3:0:
/Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi-master/UbidotsArduino.h:63:23: error: ‘dot_t’ has not been declared
void getValueInfo(dot_t* dot); // Function added by Dr. Juergen Leib
^
exit status 1
Error compiling for board Arduino/Genuino MKR1000.

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

@descobar3d try with the new version of the library sir.

Best regards,
Metavix

Thank you! problem resolved!