summaryrefslogtreecommitdiffstats
path: root/polycom_xmit/main.c
diff options
context:
space:
mode:
authorroot <root@lamia.panaceas.james.local>2015-07-21 10:12:26 +0100
committerroot <root@lamia.panaceas.james.local>2015-07-21 10:12:26 +0100
commita98e5d802b071a240ba38dfa9b039fd3f7d47ffd (patch)
tree292ffdc875fb75bf413f070a58b84f74a911232b /polycom_xmit/main.c
parent16debdbce7a5d92167207c17f18406c6905eb9b5 (diff)
downloadpolycom-a98e5d802b071a240ba38dfa9b039fd3f7d47ffd.tar.gz
polycom-a98e5d802b071a240ba38dfa9b039fd3f7d47ffd.tar.bz2
polycom-a98e5d802b071a240ba38dfa9b039fd3f7d47ffd.zip
fish
Diffstat (limited to 'polycom_xmit/main.c')
-rw-r--r--polycom_xmit/main.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/polycom_xmit/main.c b/polycom_xmit/main.c
index d7bc0bf..e04f607 100644
--- a/polycom_xmit/main.c
+++ b/polycom_xmit/main.c
@@ -13,33 +13,11 @@ user_init (void)
os_printf ("SDK version:%s\n", system_get_sdk_version ());
os_printf ("Hello world\n");
-
reset_init ();
wifi_init ();
msg_init ();
gpio_init ();
-
-
-
-
-#if 0
-
- /*Initialization of the peripheral drivers */
- /*For light demo , it is user_light_init(); */
- /* Also check whether assigned ip addr by the router.If so, connect to ESP-server */
- user_esp_platform_init ();
- /*Establish a udp socket to receive local device detect info. */
- /*Listen to the port 1025, as well as udp broadcast.
- /*If receive a string of device_find_request, it rely its IP address and MAC. */
- user_devicefind_init ();
-
- /*Establish a TCP server for http(with JSON) POST or GET command to communicate with the device. */
- /*You can find the command in "2B-SDK-Espressif IoT Demo.pdf" to see the details. */
- /*the JSON command for curl is like: */
- /*3 Channel mode: curl -X POST -H "Content-Type:application/json" -d "{\"period\":1000,\"rgb\":{\"red\":16000,\"green\":16000,\"blue\":16000}}" http://192.168.4.1/config?command=light */
- /*5 Channel mode: curl -X POST -H "Content-Type:application/json" -d "{\"period\":1000,\"rgb\":{\"red\":16000,\"green\":16000,\"blue\":16000,\"cwhite\":3000,\"wwhite\",3000}}" http://192.168.4.1/config?command=light */
-#endif
-
+ mdns_start();
webserver_init ();
}