chipKIT® Development Platform

Inspired by Arduino™

Unsuccessful compile for Webserver Example code

Created Sun, 29 Mar 2015 05:02:03 +0000 by SteveGreenberg


SteveGreenberg

Sun, 29 Mar 2015 05:02:03 +0000

Hello,

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


SteveGreenberg

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:

http://www.digilentinc.com/Data/Products/CHIPKIT-WIFIRE/deIPcK.zip


guymc

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):

http://chipkit.s3.amazonaws.com/index.html

Cheers


SteveGreenberg

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:

http://www.instructables.com/id/Getting-Started-With-the-WF32-from-Digilent/?ALLSTEPS

"Step 11: Test /Blink" gives a fun little hack to create a dynamic web page and turn on and off the LED on PIN2

thanks