[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[paho-dev] Arduino Library
|
Hi Benjamin, Hi Ian, i will testing your Arduinolibrary. But i dont understand folders in “org.eclipse.paho.mqtt.embedded-c-1.0.0” and to copy files in folder Arduino IDE 1.6.0 Libraries for my „YUN“. I have attached my Explorer Screenshot. The Error: Hello.ino:22:21: fatal error: IPStack.h: No such file or directory compilation terminated. Knolleary MQTT PubSubClient runs fine on my YUN and Eclipse JAVA paho. Thanks. Reiko Von: paho-dev-bounces@xxxxxxxxxxx [mailto:paho-dev-bounces@xxxxxxxxxxx] Im Auftrag von Guy Dillen Gesendet: Freitag, 6. März 2015 22:50 An: paho-dev@xxxxxxxxxxx Betreff: Re: [paho-dev] Eclipse Paho - Arduino Client From: Guy Dillen <guy.dillen@xxxxxxxxx> Date: Wednesday 25 February 2015 19:58 To: General development discussions for paho project <paho-dev@xxxxxxxxxxx> Subject: Re: [paho-dev] Eclipse Paho - Arduino Client Just to inform: did you already had the chance to look into it? If I can further help with pleasure. Guy,
thanks for the info. I'll look into it this week hopefully, when I get the chance.
Ian On 02/16/2015 08:25 PM, Guy Dillen wrote: Thanks for helping with the port. Of course I’ll test it, I own a Waspmote. I mail the information offline avoiding having all the details in the forum. I hope that’s ok? 1) The Countdown class needs to be ported to the Waspmote. The Arduino version uses the millis() function which could not be found here. -> milis() seems to be present on Waspmote also see http://www.libelium.com/api/waspmote/d5/df3/wiring_8c.html
2) The EthernetClient class needs to be replaced with an implementation for the Waspmote wireless API. -> are in (WiFi) WaspWifi.h / (GPRS) WaspGPRS_Pro.h / (3G) Wasp3G.h / (GPRS+GPS) WaspGPRS_SIM908.h 3) The Arduino example needs to be changed for the Waspmote because it uses the Serial.print() method which could not be found after I commented out the Arduino system headers. This could be as simple as including the correct header. -> USB.print / USB.println is in “WaspUSB.h"
P.S. I'm happy to help with the porting, if you can find out what the appropriate APIs to use are and point me to the documentation. I'd need you to test it, as I don't have the hardware. On 02/16/2015 11:23 AM, Guy Dillen wrote: Indeed there’s no add library whatsoever in the menu. The way to add external libraries is: "To install a third-party library: Libraries are often distributed as a ZIP file or folder. The name of the folder is the name of the library. Inside the folder will be a .cpp file, a .h file and often a keywords.txt file, examples folder, and other files required by the library. To install the library, first quit the Waspmote IDE. Then uncompress the ZIP file containing the library. It should contain a folder called MyLibrary, with files like MyLibrary.cpp and MyLibrary.h inside. If the .cpp and .h files aren’t in a folder, you’ll need to create one. In this case, you’d make a folder called “MyLibrary”. Drag the MyLibrary folder into the IDE libraries folder. There may be more files than just the .cpp and .h files, just make sure they’re all there. Restart the IDE. Make sure the new library appears in the Sketch → Import Library menu item. " Guy,
I had a quick look, seems like the Waspmote IDE doesn't have the "import external library" function. I'll see if I can get it to work later.
Ian On 02/14/2015 01:15 PM, Guy Dillen wrote: I would like using the Arduino Paho client with Waspmote (IDE). Using third-party libraries with the IDE expects a “MQTTClient.h" and “MQTTClient.cpp". Since all files in the Arduino Paho client have the “c" extension and (if i’m right) “MQTTClient.h" contains the headers as well as the implementation I’m looking for a suggestion how to create the needed “MQTTClient.h" and “MQTTClient.cpp" files?
_______________________________________________ paho-dev mailing list paho-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/paho-dev
-- Ian Craggs icraggs@xxxxxxxxxx IBM United Kingdom Paho Project Lead; Committer on Mosquitto _______________________________________________ paho-dev mailing list paho-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/paho-dev
_______________________________________________ paho-dev mailing list paho-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/paho-dev
-- Ian Craggs icraggs@xxxxxxxxxx IBM United Kingdom Paho Project Lead; Committer on Mosquitto _______________________________________________ paho-dev mailing list paho-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/paho-dev
_______________________________________________ paho-dev mailing list paho-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/paho-dev
-- Ian Craggs icraggs@xxxxxxxxxx IBM United Kingdom Paho Project Lead; Committer on Mosquitto _______________________________________________ paho-dev mailing list paho-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/paho-dev |
Attachment:
arduinofiles.jpg
Description: JPEG image