Hi @gammda,
Thank you. For this project, this time i not use Bascom, i use ESP32 and Arduino.
The code form Kl3m3n works fine.
Best regards
Hi @gammda,
Thank you. For this project, this time i not use Bascom, i use ESP32 and Arduino.
The code form Kl3m3n works fine.
Best regards
Hi @kl3m3n,
I have so far been unable to reproduce or verify any pattern. What is certain is that now it doesn't happen as often as it did a few months ago.
Of course, I understand that it is not easy. Notifications being a strong feature, if you get better, maybe researching how WhatsApp restarts in case it gets frozen is already a step towards a solution.
I apologize for being a nag, but it's in a good way.
Best regards
I still don't understand your code, but I will try to learn. Compared to (using indexOf(), etc...) your code is more elegant, I will use it if you don't mind.
Your knowledge is impressive, you are still the best
Thanks
Regards
Yes, I use Arduino
(using indexOf(), etc...):
That's how I was doing it, but I wasn't sure that the uuid length was fixed.
Your code compiles, but gives an error if you want to see the contents of dev_str and uuid_str in the serial monitor
no matching function for call to 'HardwareSerial::println(const std::__cxx11::basic_string<char>&)'
Best regards
@kl3m3n
Thank you kl3m3n,
Unfortunately I not undestand the code, but it gives compile error
The @init dev: OF21 Av. John XXI uuid:d3f1c986-16b3-4758-9724-51da22471f0c is in the msg variable
I try
auto dev_s = msg.find("dev:");
auto uuid_s = msg.find("uuid:");
compile error: const class String has no member named 'find'
and that can't compile too
auto dev_s = str.find("dev:");
auto uuid_s = str.find("uuid:");
compile error: 'str' was not declared in this scope
NOTE: If you enable sending usr, this will not work as the usr payload is inserted between dev and uuid...
I know, on startup don´t needed, later during the programm starting i get the usr
Best regards
Hi,
I am not a C++ expert, so maybe someone on the Forum can help how to solve the Parse of the following
@init dev:OF21 Av. John XXI uuid:d3f1c986-16b3-4758-9724-51da22471f0c
How can I store the following characters in a variable1
OF21 Av. John XXI
as well as the following in a variable2
d3f1c986-16b3-4758-9724-51da22471f0c
Thanks
Best regards
Hi kl3m3m,
I have one more somewhat innocent question, I don't understand Android, as such, I don't know if it is possible.
Unfortunately it still happens that Gui-O gets freezed and then doesn't send any Push notification. I know this is a matter of Android "killing" apps that run in the background. When I check this situation, I go to settings, Applications, select Gui-O and confirm the "Force stop", from then on Gui-O works normally again, if I open the App it sends Push notifications again.
The question is if there is any way for Gui-O to periodically check if it is frozen and if so, automatically force stop and restart again.
As I say, this is a bit of a strange question, but in my view, Push Notifications are a big Pro of Gui-O and as such, any efforts to improve it is well appreciated.
Best regards
Hi @kl3m3n,
mqttClient.publish(&In[0], "@appUuid\r\n");
I forgot that this command already existed, I just thought that when opening the App it would automatically send the App UUID as it does with "Init", or am I looking at this the wrong way?
Best regards