Quantcast
Channel: Seeedstudio Forum
Viewing all articles
Browse latest Browse all 6612

Seeeduino Stalker Wifi Bee

$
0
0
Just wanted to ask you guys outthere once more.
I got the Wifi Bee http://www.seeedstudio.com/wiki/Wifi_Bee_V2.0 and the Stalker http://www.seeedstudio.com/wiki/Seeeduino_Stalker_v2.3 but I cannot send the command $$$ over the UART connection:

Code:// Date and time functions using DS3231 RTC connected via I2C and Wire lib
#include <Wire.h>
#include "DS3231.h"

DS3231 RTC; //Create the DS3231 object

char recv[512];
int cont;

void setup ()
{
    Serial.begin(9200);
    Wire.begin();
    RTC.begin();
   
  Serial.print("$$$");
  delay(300);
  Serial.println();
  check();
    delay(300);
Serial.println("close");
check();
}

void loop ()
{
    RTC.convertTemperature();             //convert current temperature into registers
    Serial.print(RTC.getTemperature()); //read registers and display the temperature
    Serial.println("deg C");
    delay(1000);
}

void check(){
cont=0; delay(500);
// Receive the answer from the WIFI module.
while (Serial.available()>0)
{
recv[cont]=Serial.read(); delay(100);
cont++;
}
recv[cont]='\0';
// Print the answer.
Serial.println(recv);
// Clean the buffer to be able to send a command.
}


But I dont get any response like "CMD" from the Wifi bee. Do you guys from Seeedstudio have an example code for that?
It would be so great!

Statistics : Posted by florian.schwarz • on Tue May 06, 2014 6:53 am • Replies 5 • Views 687

Viewing all articles
Browse latest Browse all 6612

Trending Articles