IBM-Cloud / parrot-sample

Sample code which uses MQTT to control a Parrot AR Drone
Apache License 2.0
18 stars 12 forks source link

MQTT client not connecting to IBM-IOT #3

Open pravallikapothuru opened 7 years ago

pravallikapothuru commented 7 years ago

Hi,

Please help on this. I have imported parrot-sample application from github.I have created device and generated api key,and kept these in drone config file.please find the attached config file.

when I am trying to run the parrot-drone-controller.js file.It was showing client closed,It is not connecting to IOT.I have attached error screenshot.

error

config

andrewyuau commented 7 years ago

Hi, is your Windows machine connected to your AR Drone's wifi network? Try to disconnect other devices from your AR Drone too.

pravallikapothuru commented 7 years ago

Yes,machine connected to drons's wifi and drone not connected to other devices also at that time.

andrewyuau commented 7 years ago

How is your Windows machine connected to the Internet? Ethernet? You should at least see "MQTT client connected to IBM IoT Cloud."

pravallikapothuru commented 7 years ago

I am connecting to Ethernet.

andrewyuau commented 7 years ago

Can you ping both x29udg.messaging.internetofthings.ibmcloud.com and 192.168.1.1? The AR drone should be on 192.168.1.1.