The last few days I was working on my hardware and wanted to try my old code now on a new RFduino PCB (this is a BLE project). Starting with my Huawei P9 lite on Android 6.0 with Blynk 1.15.3 only the direct virtualWrite’s work. The BLYNK_READ functions are not called.
I delete the project and started with a new one (only a LED and a few displays) - without luck. The counter is polled within a READ but is not triggered:
Then I logged out on the Android device and launched the project on my iPad. With Blynk iOS 2.5.5 everything is working as expected and the READs are now working.
Hello Dmitriy, I used value display widgets. V10 (Uptime) is type M and the others are type S. The uptime counter should be called in 1sec an interval and the others are 5sec and more.
Yes and these “pushed” data is showing up in the app. BUT when I try to get a trigger from the app with a BLYNK_READ it is currently only working with iOS - that’s the problem. I do not want to configure a flexible readout time in my code, because Blynk has the READ feature and I can set up and alter my polling interval.
Sorry Costas, I know! Please understand that my code is working, but now only on my iPad and no more on my android mobile. I am no novice to Blynk.
So I want to get the app doing a trigger to get the data and this is done with BLYNK_READ from the server perspective and within the app I set the interval for that poll.
The code was working fine and for three weeks I concentrated on the hardware and did App-Updates without verifying. Now it is not working anymore.
BTW this is my project: Development of a BLE-Dongle to monitor my Smart electric drive EV with all the properties I hacked from the CAN-Bus - now with a RFduino:
@Costas: I followed your advice and made this simple sketch for testing and created a new project. Still no avail It is only working on iOS and not on Android. I also tested on another RFduino module - no luck. The counter is only working on my iPad…
#define BLYNK_DEBUG
#define BLYNK_PRINT Serial
#include <BlynkSimpleRFduinoBLE.h>
#include <RFduinoBLE.h>
unsigned long IOcount = 0;
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "token";
void setup() {
Serial.begin(9600);
connectRFDuino();
Serial.println("Waiting for connections...");
}
void connectRFDuino () {
RFduinoBLE.deviceName = "RFDuino2";
RFduinoBLE.advertisementInterval = MILLISECONDS(300);
RFduinoBLE.txPowerLevel = 0; // (-20dbM to +4 dBm)
// start the BLE stack
RFduinoBLE.begin();
Blynk.begin(auth);
}
BLYNK_READ(V10) {
Blynk.virtualWrite(V10, IOcount);
Serial.print(IOcount++);
Serial.println(", UptimeCounter event");
}
void loop() {
Blynk.run();
}
@Dmitriy: Please advise! Can I test something further? The code was working for the last month, but now with 1.15.3 stopped to work. Can I downgrade to 1.15.2 for testing?
@Costas: Thank you for your support so far. It seems to be BLE related - very frustrating as I specially made the PCB for the project - before I had no luck with the Arduino 101 and the RFduino is normally very stable…
I tested now with a completely new account and the simple sketch on an BLE nano (a borad that is on the boards-list in the app) but still the same! iOS working directly and on my Android no READ triggered.
Please, can someone from the Blynk-team give advice?