im trying to get two air602 dev boards to talk to each other. one is a softap the other a client. what id like to do is send streams of data from the ap to all the connected ‘nodes’. i cant seem to get the tcp socket connection working.
Here are the commands for the acccess point.
AT+WPRT=2
AT+APSSID=Laser1
AT+APENCRY=0
AT+APNIP=1,192.168.10.1,255.255.255.0,192.168.10.1,192.168.10.1
AT+WJOIN
AT+SKCT=0,1,0,1000,1000
AT+PMTF
which seems to work fine even windows pc can connect ok , havent tried to connect to socket though.
Here is the ‘client’ which connects to ap ok but socket connection fails error 13.
AT+WPRT=0
AT+SSID=Laser1
AT+NIP=0
AT+WJOIN
AT+SKCT=0,0,192.168.10.1,1000,1000
AT+PMTF
it would be nice to use the MQTT server but cant see how it can be started on the ap, looks as if its just designed to connect to some external server.
im trying to use the 602’s to replace a network of rf24’s to get more bandwidth eventually will use udp broadcast but thought id try this first.
any ideas please? thanks.
a proper api would be wonderfull AT stuff is a bit clunky. if i can get time maybe write a wrapper library for it.