ghostop14/sparrow-wifi

remote agent issue

outcomedivision opened this issue · 1 comments

I have an rpi that will run and serve on port 8020. i check with netstat and its up. i try to connect from my ubuntu GUI and connect. i select wlan1 and scan. upon scanning, the bottom left says "error connecting". Everything seems to run seamlessly besides this.

Sounds like something may be blocking. You can issue agent commands from the command-line (they're just http). So you can issue some commands to test connectivity such as:

curl http://<host name/ip>:8020/wireless/interfaces
curl http://<host name/ip>:8020/wireless/networks/wlan1

you will get json back. You can also see if you can "see" the port from your Ubuntu system with something like "nmap -Pn -n -p 8020 <ip/hostname>". It should report open. If it doesn't and it's running, there could be a firewall or something blocking the connection.

I would also check that you launched the agent as root / sudo as well or it won't be able to get wifi info.