Other Parts Discussed in Thread: CC3100, CC3200
I am trying to create a server for the CC3100. I am using the BOOST and EMUBOOST with a fresh install of Microsoft VC++ 2010. I first did project 0 (which worked fine), them the wlan_server example. Also, please add to the documentation that WPA should be used for the wlan server... it did not want to connect until I switched from OPEN to WPA (I am in a professional environment with dedicated IT folks).
My goal is to have a server that clients can connect to an do /GET and /POST operations. So, I started with the http_server example and the directions on http://processors.wiki.ti.com/index.php/CC31xx_HTTP_Server.
I can get the gateway IP. However, my browser client cannot connect to the gateway IP (which I think is the correct behavior). The entire building is on WiFi, and I am on a guest network.
First, I don't really want an access point. I want a wifi server that can also connect to some smart device. However, for now, it is an access point. I would appreciate a bit of guidance on going to a pure server (and yes, I know I can put it into MODE_STA). Eventually, I want a client that will wake up and dump data to the cloud, but first things first.
The code runs, then waits for a client to connect. However, I do not have an IP address for the device. From Edge or Foxfire (tried both), I can see the request on my laptop running Fiddler. However, no connect.
In following the directions from the CC31xx_HTTP_Server page, it has the statement "Connect a client w/ CC3100 using its SSID name" - WTF? What does this *exactly* mean?
An *exact* example, please.
sl_common.h has:
#define SSID_NAME "access_point" /* Access point name to connect to. */
#define SEC_TYPE SL_SEC_TYPE_OPEN /* Security type of the Access piont */
#define PASSKEY "" /* Password in case of secure AP */
#define PASSKEY_LEN pal_Strlen(PASSKEY) /* Password length in case of secure AP */
/* Configuration of the device when it comes up in AP mode */
#define SSID_AP_MODE "ssid_ap" /* SSID of the CC3100 in AP mode */
#define PASSWORD_AP_MODE "password" /* Password of CC3100 AP */
#define SEC_TYPE_AP_MODE SL_SEC_TYPE_WPA /* Can take SL_SEC_TYPE_WEP or SL_SEC_TYPE_WPA as well */
I have searched the forum for this phrase - no luck. I cannot find anything that will start the connection with a client browser.
Once I get a /GET or /POST, I want to construct a simple HTML page and send it to the connected client. This is also not obvious, so a pointer to something that does the send would be most appreciated.
We switched to the CC3100 because the Huzzah/ESP8266 has enough issues we decided to abandon it. You have (generally) better documentation. I was finally able to get what I wanted with Lua code, but it runs too slow.
We are in a bit of a crunch (naturally). Thanks.... bandit
.