I wanted to ask you which is better in terms of stability and consuming Flash/RAM?
What is your experience?
I really saw a some garbage in received data when using WiFly-Shield. This doesn’t look good.
We need a library with a working WebClient (or HttpClient/TcpClient) example
Did you experience similar problems? How can it be fixed?
Thanks for any help.
Hi,
I was using a specific version of WiflyHQ that is needed for the ArduinoWiflyOSC library.
HOwever, I dont like the OSC way anymory but like youre application much more so cant wait to see it working with Wifly. I am not much of a help for you since I am not very deep into develloping libraries etc…just know how to use given libraries
Thats why I need you guys
Best
Thorsten
Did you work on the library yet?
I just saw on githup that you updated some files a few days ago but there was no statement here so I did not try it out…
ok - found the library as you noted it in your example sketch
However, I cannot compile cause I am using Mighty1284p 16 Mhz using Optiboot Library.
Compiling with any othe library worx. Would be cool if you could help me out with that:
here is what i get:
In file included from D:\Arduino\1_05\libraries\Blynk/Adapters/BlynkWiFly.h:22,
from D:\Arduino\1_05\libraries\Blynk/BlynkSimpleWiFly.h:14,
from RN_XV_WiFly.ino:39:
D:\Arduino\1_05\libraries\Blynk/BlynkApiArduino.h: In member function ‘void BlynkApi::processCmd(const void*, size_t)’:
D:\Arduino\1_05\libraries\Blynk/BlynkApiArduino.h:132: error: ‘INPUT_PULLUP’ was not declared in this scope
RN_XV_WiFly.ino: In function ‘void setup()’:
RN_XV_WiFly:50: error: no match for ‘operator!’ in ‘!Serial’
RN_XV_WiFly.ino:50: note: candidates are: operator!(bool)
RN_XV_WiFly:53: error: no match for ‘operator!’ in ‘!Serial1’
RN_XV_WiFly.ino:53: note: candidates are: operator!(bool)
one more: Tried to figure out where it does not work, so see my sketch:
//#define BLYNK_DEBUG
//#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <SPI.h>
#include <WiFly.h>
#include <BlynkSimpleWiFly.h>
char auth[] = "ac5639ce971f46d4a9b990c28cbdf4a2";
#define WiFlySerial Serial1 // Could be a SoftwareSerial object
boolean autoLED=true;
void setup()
{
Serial.begin(9600);
WiFlySerial.begin(9600); // Set your RN-XV baud rate
pinMode(4, OUTPUT);
digitalWrite(4,HIGH);
WiFly.setUart(&WiFlySerial);
delay(10000);
Blynk.begin(auth, "xxx", "xxx");
pinMode(4, OUTPUT);
digitalWrite(4,LOW);
}
void loop()
{
Blynk.run();
}
BLYNK_WRITE(6) {
if (autoLED==1 && param.asInt()==1) { autoLED=0; Blynk.virtualWrite(7, 0); Blynk.virtualWrite(8, 255); }
else if (autoLED==0 && param.asInt()==1) { autoLED=1; Blynk.virtualWrite(7, 255); Blynk.virtualWrite(8, 0); }
}
=> the led (D4) goes high then the board starts trying to connect. However if I put the D4 to go LOW before the Blynk.begin(auth, “tnthome”, “testtest”); the LED goes LOW. If i put it behind it does not go LOW; so it seems there is sth strange in my setup with the blynk.begin.
sorry but i do not find any information about the identifier…neither which I own nor what exactly i would need to insert…
I am not even sure if thhats the problem…
would be cool if you could provide more help on this - i am lost
it hangs up at Blynk.begin(…) => I can tell cause LED4 will never be LOW.
If I put it before Blynk.begin, LED4 goes LOW.
So that is at least one thing not working for me.
The other one is, that WiFly.setUart(&WiFlySerial); doesnt connect - i tries to but ends up with fast blinking green WiFly LED
However, I still cannot connect with blynk app: “Your wildfire V2 is not in network”
and it still seems to hang on Blynk.begin(auth, “xxx”, “xxxx”); (Cause LED4 still does not change to LOW)
sth more I figured out:
It works if I comment out all blynk.XY commands
//#define BLYNK_DEBUG
//#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <SPI.h>
#include <WiFly.h>
#include <BlynkSimpleWiFly.h>
char auth[] = "ac5639ce971f46d4a9b990c28cbdf4a2";
#define WiFlySerial Serial1 // Could be a SoftwareSerial object
boolean autoLED=true;
void setup()
{
Serial.begin(9600);
WiFlySerial.begin(9600); // Set your RN-XV baud rate
pinMode(4, OUTPUT);
digitalWrite(4,HIGH);
WiFly.setUart(&WiFlySerial);
delay(10000);
// Blynk.begin(auth, "xxx", "xxxx");
digitalWrite(4,LOW);
}
void loop()
{
// Blynk.run();
}
BLYNK_WRITE(6) {
if (autoLED==1 && param.asInt()==1) { autoLED=0; Blynk.virtualWrite(7, 0); Blynk.virtualWrite(8, 255); }
else if (autoLED==0 && param.asInt()==1) { autoLED=1; Blynk.virtualWrite(7, 255); Blynk.virtualWrite(8, 0); }
}
The prvious bug was that the LED4 went off but right away rebooted the arduino so i didnt notice the OFF.
Question is: Why is blynk.run or blynk.begin rebooting???
Hey guys, I did some stability tests and it looks like using WiFlyHQ is much better…
It will take me 1-2 days to integrate it. I believe it will be much easier to start and more fast, reliable.
Sorry for the confusion, and thanks for your efforts!
I pushed this version to the master few minutes ago…
I was able to connect and operate my project (Wildfire with same ATmega1284P) with WiFlyHQ library (without modifications).
Could you check it?