I have been tinkering with the wireless serial stuff, it’s the next thing I need to learn. I only have a bluetooth module now, and there are some alternate/better wifi units for Arduino shield if I can get it talking to the Makeblock board.
As such, I have been looking at the products and code. If you have downloaded the Makeblock libraries, there are some good code examples under the file menu. Here is one which you might try:
There are extra () around the hash character on the include statements because it renders as font code in the posts
(#)include <Makeblock.h>
(#)include <Arduino.h>
(#)include <SoftwareSerial.h>
(#)include <Wire.h>
MeWifi Wifi(PORT_4);
void setup()
{
Serial.begin(9600);
Wifi.begin(9600);
Serial.println(“Bluetooth Start!”);
}
void loop()
{
char inDat;
char outDat;
if(Wifi.available())
{
char c = Wifi.read();
Serial.print©;
}
if(Serial.available())
{
outDat = Serial.read();
Wifi.write(outDat);
}
}