Cant send arduino values to ubidots (error pop up)

Arduino: 1.6.8 (Windows 7), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

java.io.IOException: Access is denied
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(File.java:2024)
at processing.app.BaseNoGui.saveFile(BaseNoGui.java:1087)
at processing.app.SketchCode.save(SketchCode.java:222)
at processing.app.SketchData.save(SketchData.java:165)
at processing.app.Sketch.save(Sketch.java:595)
at processing.app.Editor.handleSave2(Editor.java:2244)
at processing.app.Editor.handleSave(Editor.java:2224)
at processing.app.Editor.handleRun(Editor.java:1921)
at processing.app.Editor.handleRun(Editor.java:1915)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:344)
at java.awt.Component.processMouseEvent(Component.java:6532)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6300)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4891)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Access is denied

In file included from C:\Users\admin\AppData\Local\Temp\arduino_modified_sketch_199888\UbidotsSaveValue.ino:5:0:

C:\Users\admin\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

                   ^

C:\Users\admin\Documents\Arduino\libraries\ubidots-arduino-wifi-master/UbidotsArduino.h:40:16: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

#define SERVER “things.ubidots.com

            ^

C:\Users\admin\Documents\Arduino\libraries\ubidots-arduino-wifi-master/UbidotsArduino.h:60:41: note: in expansion of macro ‘SERVER’

 Ubidots(char* token, char* server = SERVER);

                                     ^

C:\Users\admin\AppData\Local\Temp\arduino_modified_sketch_199888\UbidotsSaveValue.ino:16:21: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

Ubidots client(TOKEN);

                 ^

C:\Users\admin\AppData\Local\Temp\arduino_modified_sketch_199888\UbidotsSaveValue.ino:16:21: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

C:\Users\admin\AppData\Local\Temp\arduino_modified_sketch_199888\UbidotsSaveValue.ino: In function ‘void loop()’:

C:\Users\admin\AppData\Local\Temp\arduino_modified_sketch_199888\UbidotsSaveValue.ino:50:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

     client.add(ID, value);

                         ^

Multiple libraries were found for “UbidotsArduino.h”
Used: C:\Users\admin\Documents\Arduino\libraries\ubidots-arduino-wifi-master
Not used: C:\Program Files\Arduino\libraries\ubidots-arduino-wifi-master
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

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

@junada95 its urgent

@ayshwarya Hi,

What Arduino IDE Version are you using?

Also you can do a quick search on google with this problem:

So, It seems to be a permissions problem. Check that you have permissions for use the port and the IDE too.

Regards
Gustavo.

im getting this error and cant seem to fix it. using IDE 1.6.11

Hi @ayshwarya
You have an error here:

There are two definitions of same library you need to delete one of both,.By the way change the name of the “ubidots-arduino-wifi-master” to “ubidots-arduino-wifi”

Best regards,
Metavix