I'm trying to connect my Intel Galileo Gen 2 board to thingworkx. I'm following the tutorial Weather Application with Intel Galileo | ThingWorx . In the example, they have used the HTU21D sensor . As it wasn't available where I live, I'm performing the tutorial using a BMP180 sensor. I'm using it to sense temperature and pressure.
I have modified the code given for HTU21D , as follow for BMP180:
Every time when I burn the code to my board the serial monitor waits for a while after printing "Initialize TWX:" and then start printing the temperature and pressure without giving any information regarding the connection, like if it's connected or not .I'm also not able to see temperature and pressure as properties in binding option. I have attached the screenshot of Serial Monitor and the original as well as modified code . Please let me know where I'm going wrong .
If it helps. Here is the screenshot of ifconfig for my device.
I realised in code I have written ifup eth0,but there is no adapter as etho0 on my device. As a result, I changed the code to "ifup enp0s20f6". Even after this my device wasn't able to connect and send data to thingworx. I looked further into ifup and I came to know ifup <adapyter_name> gives all the details related to a particular adapter . When I wrote "ifup enp0s20f6" I got error saying "ifup: can't open '/etc/network/interfaces': No such file or directory". My device is connected to the internet as wget is able to download the data . What should I do now ?
Hi Rishi Shukla,
The code for the Weather App with Intel Galileo was made to be used on a http instance. Please check this post to learn how to make the C SDK work on https.