Go Down

Topic: Feeling interest for a WiFi shield (Read 79193 times) previous topic - next topic



here you could find more info -


Has anyone tried this code out?

Admittedly I know next to nothing about programming but when I try to plop it in my code I get compile errors about zg_init() etc being out of scope.


To soft reset the WiShield, you can use the following function and call it whenever you want to reset the WiShield and cause it to reconnect to the AP. This piece of code blocks until the WiShield reconnects to the AP.


void wishield_reset()
 // setup initial state

 // setup the interrupt pin
 attachInterrupt(0, zg_isr, LOW);

 // loop here until connection established
 while(zg_get_conn_state() != 1) {

My code:

Code: [Select]

int conn_state; // This variable will be used to hold connection state of WiShield to APz

// This function generates a tweet with the current temperature and humidity
void currentTemp() {
  WiServer.printTime(millis()); // Append time Arduino has been running - gets around duplicate tweet filtering
  WiServer.print("] ");
  WiServer.print("Humidor temp and humidity is: ");
  WiServer.print(" C and ");

void wishield_reset()
 // setup initial state

 // setup the interrupt pin
 attachInterrupt(0, zg_isr, LOW);

 // loop here until connection established
 while(zg_get_conn_state() != 1) {

TWEETrequest sentMyTweet(auth, currentTemp);

//MsTimer2 12 hour timer ISR
void timerISR()
  intTimer = true;  // When this ISR is run the flag is set for another email to be sent

void setup()

  //set up WiServer to allow this app to do socket send/recv outside of
  //WiServer to enable SMTP email send
  WiServer.setSockFunc(socket_app_appcall, 25);

  //set up global state data
  intTimer = true;

  //setup the timerISR to be called every 12 hours
  MsTimer2::set(emailTimer, timerISR);

void loop()
 if (tweet == 0) // Tweets once at inital startup.  Next tweet won't happen for <intervalTweet>
   ++tweet; // Increment initial tweet count
 if (millis() - previousMillis > intervalHum)
   previousMillis = millis();
   temp_c = sht1x.readTemperatureC();
   humidity = sht1x.readHumidity();


Asynclabs has cyber-week discount on going, with free shipping.
Read their front page for more detail.

Some of my customers are readers here, so i just want to introduce our PCB and prototype here. Wish could help u on the development of new products.

We are professional PCB and prototype suppliers with certification of ISO9001, ISo14001, UL, TS16949 and Rohs. Our standard is IPC class 2.

our double-sided PCB can be finished in 4-7 days. Delivery time to Europe, like espan, is about 4 days.

As for quick turn prototype for new product, it can be completed in 48 hours.

We will arrange production based on customers' gerber file.

our company web is www.super-well.com (have multi country language selection)

our cooperation Ebay shop is http://stores.ebay.com/vroom

my msn is amyhu86755@hotmail.com, welcome to receive ur inquiry.

For the past decades, buyers in the US, Europe, South Amercia and Asia have always been using Superwell PCB and PCBA services in their products.

Why they choose us?

Professional Technology        High Efficience  
One-Stop Service                      Fair Price  

We can offer:
HDI PCB (4 -16 layers)
Multi-layer PCB (10 -40 layers)
Quick Turn Prototype
Multi-type and small-batch PCB
Microwave PCB
Heavy Copper PCB
Customer Special Required PCB


Almost a year passed after we introduced the wishield. Now it is
time for something new -

[size=18]Widuino (BlackWidow)  -  a combo of arduino atmega328 and wishield[/size]

[size=18]Widuino Mini (YellowJacket) - a small factor of widuino[/size]

[size=16]The price is $75 for BlackWidow and $55 for YellowJacket. Please
do let us know your thoughts.[/size]


[size=14]wishield v2 is coming - it has 16Mbits flash on board! more detail at  asynclabs.com. [/size]



Will international shipping be available?
Im from Portugal and Im interested in WiShield.

Looking forward to see its 2nd version :)


All new products are available now.(ship to world-wide)

wifi arduino mini
wishield 2.0 with 16Mbits flash



[size=16]wishield with external low profile antenna -[/size]


Go Up