ENC28j60 question

Hi,

Hello,

I had problems with UIPEthernet library, so I decided to move to ETHERSHIELD AND ENC25j60 library, but could not find command equivalent to this line:

EthernetClient client;

Below the complete code.

#include <DHT.h>
#include <enc28j60.h>
#include <etherShield.h>
#include <ip_arp_udp_tcp.h>
#include <net.h>
#include <Arduino.h>

#include <ETHER_28J60.h>


#define DHTPIN 3
#define DHT1PIN 2 // pino que estamos conectado
#define DHT2PIN 4 // pino que estamos conectado
#define DHT3PIN 5 // pino que estamos conectadog3

#define DHTTYPE DHT11 // DHT 11
#define DHT1TYPE DHT11 // DHT 11
#define DHT2TYPE DHT11 // DHT 11
#define DHT3TYPE DHT11 // DHT 11

DHT dht(DHTPIN, DHTTYPE);
DHT dht1(DHT1PIN, DHT1TYPE);
DHT dht2(DHT2PIN, DHT2TYPE);
DHT dht3(DHT3PIN, DHT3TYPE);

char devid[] = "v0BAAC63B4E69044" ;  // THIS IS THE DEVICE ID FROM PUSHINGBOX

int del=300;  // Amount of seconds delay between posting to google docs.

char postmsg[30];
char server[] = "api.pushingbox.com";
EthernetClient client;

// A simple web server that always just says "Hello World"

//#include "etherShield.h"
//#include "ETHER_28J60.h"

// Define MAC address and IP address - both should be unique in your network
static uint8_t mac[6] = {0x54, 0x55, 0x58, 0x10, 0x00, 0x24};  
static uint8_t ip[4] = {192, 168, 1, 15}; 
static uint16_t port = 80; // Use port 80 - the standard for HTTP                                     

ETHER_28J60 ethernet;

void setup()
{ 
  ethernet.setup(mac, ip, port);
  delay(1000);
    dht.begin();
  dht1.begin();
  dht2.begin();
  dht3.begin();
}

void loop()
{
  
         delay(4000);// aguarda 4 segundos
  
    int umid1 = dht.readHumidity();
    int temp1 = dht.readTemperature();
    int umid2 = dht2.readHumidity();
    int temp2 = dht2.readTemperature();
    int umid3 = dht3.readHumidity();
    int temp3 = dht3.readTemperature();
    int umid4 = dht1.readHumidity();
    int temp4 = dht1.readTemperature();
    
      sprintf(postmsg,"GET /pushingbox?devid=%s&status=%d&umid1=%d&temp2=%d&umid2=%d&temp3=%d&umid3=%d&temp4=%d&umid4=%d HTTP/1.1",devid,temp1,umid1,temp2,umid2,temp3,umid3,temp4,umid4);// NOTE** In this line of code you can see where the temperature value is inserted into the wed address. It follows 'status=' Change that value to whatever you want to post.
    client.println(postmsg);
    client.println("Host: api.pushingbox.com");
    client.println("Connection: close");
    client.println();
  
  if (ethernet.serviceRequest())
  {
    
    ethernet.print("<H1>Hello World</H1>");
    ethernet.respond();
  }
  delay(100);
}