newbie needs help with wifi/wlan
Posted: Thu Dec 04, 2014 5:20 pm
Hi,
I have been trying to connect the Adafruit CC300 breakout to the pyboard but am at a loss as to how to proceed beyond the physical linking up of pins. In the video on the kickstarter site, plugging in the board and typing wlan.connect() seems to suffice, but hey .. when I do this wlan is not defined. I've looked at the documentation and I have tried the following:
1. define an spi instance, pass this as the first argument to create a new member of the network.CC3k class and then try cc3k.connect
for example :
spi2=SPI(2,SPI.MASTER, baudrate=115200)
lan=network.CC3k(spi2,'Y5','Y4','Y3')
lan.connect('mynetwork',key='mypwd',security=3)
- giving the arguments to cc3k.connect as in the documentation also gives me errors .. I can do connect('network',key='pwd',security=3) but get an error if I try the format given in the documentation, ie connect('network',key='pwd',*,security=3) *note, security=WPA2 gives an error that WPA2 is undefined.
- when I do give a connect command, and query the status eg lan.is_connected(), then it returns false.
2. I have looked in the forum for help, and the link in one post to pybcc3k returns a 404 from GitHub, and searching Github for pybcc3k produces no result. Neither does searching for pybwlan, and the micropython module repository has no wlan module.
I am using a recent dfu (28-11-14) containing the network module and appropriate for my board, a pyboard v1.0.
In short, I am at a loss for how to proceed - can anyone help?
Paul T
I have been trying to connect the Adafruit CC300 breakout to the pyboard but am at a loss as to how to proceed beyond the physical linking up of pins. In the video on the kickstarter site, plugging in the board and typing wlan.connect() seems to suffice, but hey .. when I do this wlan is not defined. I've looked at the documentation and I have tried the following:
1. define an spi instance, pass this as the first argument to create a new member of the network.CC3k class and then try cc3k.connect
for example :
spi2=SPI(2,SPI.MASTER, baudrate=115200)
lan=network.CC3k(spi2,'Y5','Y4','Y3')
lan.connect('mynetwork',key='mypwd',security=3)
- giving the arguments to cc3k.connect as in the documentation also gives me errors .. I can do connect('network',key='pwd',security=3) but get an error if I try the format given in the documentation, ie connect('network',key='pwd',*,security=3) *note, security=WPA2 gives an error that WPA2 is undefined.
- when I do give a connect command, and query the status eg lan.is_connected(), then it returns false.
2. I have looked in the forum for help, and the link in one post to pybcc3k returns a 404 from GitHub, and searching Github for pybcc3k produces no result. Neither does searching for pybwlan, and the micropython module repository has no wlan module.
I am using a recent dfu (28-11-14) containing the network module and appropriate for my board, a pyboard v1.0.
In short, I am at a loss for how to proceed - can anyone help?
Paul T