Conduit to pc application
- This topic has 1 reply, 2 voices, and was last updated 7 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Conduit: mLinux Model › Conduit to pc application
Hi,
I’m trying to get my head around the possibilities to use a Conduit mLinux model in my project.
I need to have a private Lora network and I want to connect the Conduit to a Pc and send/receive udp packets between them.
What I’m confused about is, if I should use the built in network server in the Conduit, or if I should configure it for packet forwarding?
I guess the network server handles alot of the “Lora stuff” for me so this would be the prefered way but can the network server pass on and receive udp messages from my Pc Application to communicate with my nodes? I don’t see any ip adress field for external applications in the network server configuration file?
regards!
Hi Mitsos Minas,
The easiest is use the built in network server and use mqtt client lib to receive/send data to your motes.
Conduit:
——–
1. ssh into the Conduit and go to /etc/mosquitto and modify the mosquitto.conf with the following:
#bind_address 127.0.0.1 <–Put a hash sign infront of this line to commented it out.
2. Save and exit.
3. Then type: /etc/init.d/mosquitto restart <–Restart the moquitto
Remote PC:
———-
1. Install the mosquitto software – http://mosquitto.org/download/
2. mosquitto_sub -t lora/+/+ -v -h 192.168.2.1
Then on the mDot – Send some data – You should see it shows up on your remote PC.
Or you can write your own application with mqtt client lib. It has multiple programming language supported.
https://github.com/mqtt/mqtt.github.io/wiki/libraries
Thanks,
BT