[SOLVED] First time setting up with Arduino 101

i have tried running the example through arduino IDE 1.6.11. keep getting the following error messages when verifying the included example

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

In file included from /Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:32:0,
from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFiClient.h:28:7: error: redefinition of ‘class WiFiClient’
class WiFiClient : public Client {
^
In file included from /Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:31:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFiClient.h:27:7: error: previous definition of ‘class WiFiClient’
class WiFiClient : public Client {
^
In file included from /Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:34:0,
from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFiServer.h:28:7: error: redefinition of ‘class WiFiServer’
class WiFiServer : public Server {
^
In file included from /Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:32:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFiServer.h:31:7: error: previous definition of ‘class WiFiServer’
class WiFiServer : public Server {
^
In file included from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:37:17: error: redeclaration of ‘WL_NO_SHIELD’
WL_NO_SHIELD = 255,
^
In file included from /Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:26:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/utility/wl_definitions.h:51:2: note: previous declaration ‘wl_status_t WL_NO_SHIELD’
WL_NO_SHIELD = 255,
^
In file included from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:38:19: error: redeclaration of ‘WL_IDLE_STATUS’
WL_IDLE_STATUS = 0,
^
In file included from /Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:26:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/utility/wl_definitions.h:52:9: note: previous declaration ‘wl_status_t WL_IDLE_STATUS’
WL_IDLE_STATUS = 0,
^
In file included from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:39:2: error: redeclaration of ‘WL_NO_SSID_AVAIL’
WL_NO_SSID_AVAIL,
^
In file included from /Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:26:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/utility/wl_definitions.h:53:9: note: previous declaration ‘wl_status_t WL_NO_SSID_AVAIL’
WL_NO_SSID_AVAIL,
^
In file included from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:40:2: error: redeclaration of ‘WL_SCAN_COMPLETED’
WL_SCAN_COMPLETED,
^
In file included from /Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:26:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/utility/wl_definitions.h:54:9: note: previous declaration ‘wl_status_t WL_SCAN_COMPLETED’
WL_SCAN_COMPLETED,
^
In file included from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:41:2: error: redeclaration of ‘WL_CONNECTED’
WL_CONNECTED,
^
In file included from /Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:26:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/utility/wl_definitions.h:55:9: note: previous declaration ‘wl_status_t WL_CONNECTED’
WL_CONNECTED,
^
In file included from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:42:2: error: redeclaration of ‘WL_CONNECT_FAILED’
WL_CONNECT_FAILED,
^
In file included from /Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:26:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/utility/wl_definitions.h:56:9: note: previous declaration ‘wl_status_t WL_CONNECT_FAILED’
WL_CONNECT_FAILED,
^
In file included from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:43:2: error: redeclaration of ‘WL_CONNECTION_LOST’
WL_CONNECTION_LOST,
^
In file included from /Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:26:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/utility/wl_definitions.h:57:9: note: previous declaration ‘wl_status_t WL_CONNECTION_LOST’
WL_CONNECTION_LOST,
^
In file included from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:44:2: error: redeclaration of ‘WL_DISCONNECTED’
WL_DISCONNECTED
^
In file included from /Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:26:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/utility/wl_definitions.h:58:9: note: previous declaration ‘wl_status_t WL_DISCONNECTED’
WL_DISCONNECTED
^
In file included from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:45:3: error: conflicting declaration ‘typedef enum wl_status_t wl_status_t’
} wl_status_t;
^
In file included from /Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:26:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/utility/wl_definitions.h:59:3: error: ‘wl_status_t’ has a previous declaration as ‘typedef enum wl_status_t wl_status_t’
} wl_status_t;
^
In file included from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:48:6: error: multiple definition of ‘enum wl_enc_type’
enum wl_enc_type { /* Values map to 802.11 encryption suites… /
^
In file included from /Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:26:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/utility/wl_definitions.h:62:6: error: previous definition here
enum wl_enc_type { /
Values map to 802.11 encryption suites… /
^
In file included from /Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:32:0,
from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:
/Users/descobar/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:64:7: error: redefinition of ‘class WiFiClass’
class WiFiClass
^
In file included from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:3:0:
/Users/descobar/Desktop/Arduino 2.app/Contents/Java/libraries/WiFi/src/WiFi.h:34:7: error: previous definition of ‘class WiFiClass’
class WiFiClass
^
In file included from /Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:5:0:
/Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:58:23: error: ‘dot_t’ has not been declared
void getValueInfo(dot_t
dot); // Function added by Dr. Juergen Leib
^
/Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:35:16: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define SERVER “things.ubidots.com
^
/Users/descobar/Documents/Arduino/libraries/ubidots-arduino-wifi/UbidotsArduino.h:55:41: note: in expansion of macro ‘SERVER’
Ubidots(char* token, char* server = SERVER);
^
/Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:16:21: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Ubidots client(TOKEN);
^
/Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:16:21: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino: In function ‘void loop()’:
/Users/descobar/Documents/Arduino/sketch_sep06a/sketch_sep06a.ino:50:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
client.add(ID, value);
^
exit status 1
Error compiling for board Arduino/Genuino 101.

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

@descobar3d You are using an Arduino 101, this device need a special library for WiFi, you need to download it before, please follow the steps of this site before to run a Ubidots example for Arduino WiFi.

Best regards,
Metavix

thank you,
i have already completed those sets as i have used the 101 for other projects with no errors. regardless of the board selected the errors still hapeen even for the examples provided.

i also get the error: ‘dot_t’ has not been declared

@descobar3d yes i know why. One more question what shield are you using to get WiFi access?
The reason is that the library was made for other boards but i can upload a special version for your board here, to do that please answer me the question.

Best regards,
Metavix

Thank you, im using the Arduino WiFi Shield 101

@descobar3d with arduino UNO or Mega?

Arduino UNO board

@descobar3d nice, with that info i know what was the problem, that library was built for cc3200 and arduino oficial WiFi shield, i will give you a library for that shield with Arduino UNO.

@descobar3d uploaded a new version of the library, download it here and try again with your board, i think that it will work for you.

thank you i will try tonight

thank you problem resolved

Great! @descobar3d if you find more problems in the future tell us and will solve it as soon as possible.

Best regards,
Metavix