 }
 
 void loop() {
+  getToken();
+  modem.receive(buff);
+  
+  Serial.print("token: ");
+  Serial.println(buff);
 
+  delay(5000);
+}
+
+void getToken() {
+  modem.sendln("GET /getToken/h1h1h1 HTTP/1.1");
+  modem.sendln("Host: 192.168.0.2");
+  modem.sendln("Connection: close");
+  modem.sendln();
 }
 
 

#include <SoftwareSerial.h>
#include <WIZ610.h>

#define  PULL_UPS_OFF   bitSet(MCUCR,PUD)

#define  txWifi         3
#define  rxWifi         2

SoftwareSerial wifiPort(rxWifi, txWifi);
WIZ610 modem(&wifiPort);

void setup() {
  modem.pwrOn();


  modem.setWIRCfg(WIZ610_B_G, WIZ610_CLIENT, "Ninja", WIZ610_CH_AUTO);
  modem.setSecurity(WIZ610_WPA2_PSK, WIZ610_TKIP_AES, WIZ610_TKIP, WIZ610_ASCII, WIZ610_PASSPHRASE, "A2B4C6D8E0");
  modem.serialClientCfg(WIZ610_TCP, LIB_DOMAIN, LIB_DOMAIN_PORT, "60");

  Serial.println("ready");
  Serial.print("exit config...");
