Wishield 2 with modern IDE (1.8.7)

Trying to get my new Arduino to connect to my wifi with an Asynclabs Wishield 2.

I just can’t get it to work, and it constantly throws up errors (assumedly due to the library being written for an old version of Arduino).

Any chance someone has a working (modern) library and config?

I can’t even get a simple sketch to work …

/*
* A simple sketch that uses WiServer to serve a web page
* and an lcd to show status and hits
*/


#include <WiServer.h>


int count = 0;

#define WIRELESS_MODE_INFRA      1
#define WIRELESS_MODE_ADHOC      2

// Wireless configuration parameters ----------------------------------------
unsigned char local_ip[] = {192,168,2,210};      // IP address of WiShield
unsigned char gateway_ip[] = {192,168,2,1};      // router or gateway IP address
unsigned char subnet_mask[] = {255,255,255,0};      // subnet mask for the local network
const char ssid[] PROGMEM = {"xxxxxxxxx"};            // max 32 bytes

unsigned char security_type = 3;      // 0 - open; 1 - WEP; 2 - WPA; 3 - WPA2

// WPA/WPA2 passphrase
const char security_passphrase[] PROGMEM = {"xxxxxxxxx"};      // max 64 characters

// WEP 128-bit keys
// sample HEX keys
// const uchar wep_keys[] PROGMEM = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d,      // Key 0
//                         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,      // Key 1
//                         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,      // Key 2
//                         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00      // Key 3
//                       };

// setup the wireless mode
// infrastructure - connect to AP
// adhoc - connect to another WiFi device
unsigned char wireless_mode = WIRELESS_MODE_INFRA;

unsigned char ssid_len;
unsigned char security_passphrase_len;
// End of wireless configuration parameters ----------------------------------------

// This is our page serving function that generates web pages
boolean sendMyPage(char* URL) {

   // Check if the requested URL sets bleeper on
   if (strcmp(URL, "/") == 0) {
       
       // Use WiServer's print and println functions to write out the page content
       WiServer.print("<html>");
       WiServer.print("Hello world
");
       WiServer.print(count);
       WiServer.print(" Hits");
       WiServer.print("</html>");
       count++;
       return true;
   }

   // URL not found
   return false;
}


void setup() {
 
    
 // Initialize WiServer and have it use the sendMyPage function to serve pages
 WiServer.init(sendMyPage);
 
  
 // Enable Serial output and ask WiServer to generate log messages (optional)
 Serial.begin(57600);
 WiServer.enableVerboseMode(true);
}

void loop(){

 // Run WiServer
 WiServer.server_task();
 //Serial.print("Loop");

}

I also tried various guides and posts that worked for others in the past … no dice with the current IDE, e.g.: http://sinagra.org/2014/12/04/configure-asynclabs-wishield-2-0/

When you post code to the forum, please use the code tags (</> button on the toolbar), not quote tags. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn’t show the posting toolbar then you can just manually add the code tags:
[code]``[color=blue]// your code is here[/color]``[/code]
Using code tags and other important information is explained in the How to use this forum post. Please read it.

When you encounter an error you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

Post a link to where you got the library from. Please use the chain links icon on the toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.

Thank you. I did not see the "code" tag initially - I want to say most forums have that button next to the quote tag.

I have tried three variations of the library: https://github.com/asynclabs/WiShield

https://github.com/kaptk2/ZG2100BasedWiFiShield (which supposedly worked with 1.6.5)

and

https://github.com/asynclabs/WiShield with the changes listed here: http://sinagra.org/2014/12/04/configure-asynclabs-wishield-2-0/

They all result in pages of errors. I was hoping someone knew of an updated library. Otherwise, happy to list all the errors ...

Nobody?

Is there a more active board somewhere?

I'd say you can take the lack of a response as a "no" reply to your first question:

coolVariable: I was hoping someone knew of an updated library.

So the next logical step would be for you to choose the most promising of the three libraries and post the full error output from it, using code tags.