Created Sun, 29 Mar 2015 05:02:03 +0000 by SteveGreenberg
Sun, 29 Mar 2015 05:02:03 +0000
I have been unsuccessful getting the Webserver demo to compile. Here is the current error output:
In file included from /Users/steveg/Documents/mpide/WebServer/HTTPServer.h:41:0, from Helper.cpp:31: /Users/steveg/Documents/mpide/libraries/DNETcK/DNETcK.h:296:12: error: conflicting return type specified for 'virtual size_t TcpClient::write(uint8_t)' /Applications/mpide.app/Contents/Resources/Java/hardware/pic32/cores/pic32/Print.h:50:15: error: overriding 'virtual void Print::write(uint8_t)' /Users/steveg/Documents/mpide/libraries/DNETcK/DNETcK.h:297:12: error: conflicting return type specified for 'virtual size_t TcpClient::write(const char*)' /Applications/mpide.app/Contents/Resources/Java/hardware/pic32/cores/pic32/Print.h:51:15: error: overriding 'virtual void Print::write(const char*)' /Users/steveg/Documents/mpide/libraries/DNETcK/DNETcK.h:298:12: error: conflicting return type specified for 'virtual size_t TcpClient::write(const uint8_t*, size_t)' /Applications/mpide.app/Contents/Resources/Java/hardware/pic32/cores/pic32/Print.h:52:15: error: overriding 'virtual void Print::write(const uint8_t*, size_t)'
I have studied the other posts on this subject and diligently assured that all the libraries are in their correct working paths, reinstalled, etc, etc Other sketches verify/compile/upload just fine
thanks in advance
Sun, 29 Mar 2015 19:44:58 +0000
Started over and realized there are references on the inter web to different versions, I think I was using an older version inadvertently, starting fresh with the one linked here worked:
Mon, 30 Mar 2015 21:16:27 +0000
Recent test builds of MPIDE include the network libraries and HTTP server example code built in. So all you have to do is select it from the File:Examples menu. The DEWFcK:WifiScan example will run without modification on most boards. The HTTPServer example should be copied to your sketchbook, so you can modify the SSID and PassPhrase values in file HTTPServerConfig.h.
Test builds can be found here (see for example versions dated 20150204):
Mon, 30 Mar 2015 22:46:14 +0000
Yes, that works thank you
There is a useful tutorial online, but it links to an older version and that is where I ran into problems. Once I got it working though I applied the "blink" portion of that tutorial to good use, here it is for those who are interested:
"Step 11: Test /Blink" gives a fun little hack to create a dynamic web page and turn on and off the LED on PIN2