Work with nodejs server: https://github.com/bjo3rn/idd-examples/tree/ben-node-demo/web/nodeServerHTTPSocket
Dependencies: HTTPClient WebSocketClient cc3000_hostdriver_mbedsocket mbed
Fork of CC3000_demo by
Diff: main.cpp
- Revision:
- 16:d40dee28b02e
- Parent:
- 15:ac15ec676d87
- Child:
- 17:97c355870263
--- a/main.cpp Mon Oct 20 07:00:12 2014 +0000 +++ b/main.cpp Mon Oct 20 17:10:13 2014 +0000 @@ -27,7 +27,7 @@ // - SPI CLK => (pin D13) // plus wifi network SSID, password, security level and smart-configuration flag. mbed_cc3000::cc3000 wifi(D3, D5, D10, SPI(D11, D12, D13), - "EECS-PSK", "Thequickbrown", WPA2, false); + "SSID", "PASSWORD", WPA2, false); // create an http instance HTTPClient http; @@ -41,8 +41,7 @@ DigitalOut led_red(LED_RED); DigitalOut led_green(LED_GREEN); -int main() -{ +int main() { // by default, it's red led_red = 0; led_green = 1;