Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 22 online users. » 3 Member(s) | 16 Guest(s) Bing, Google, Yandex, Alexander P
|
|
|
Synchronize text T[] with ESP32 |
Posted by: Dionysos - 05-02-2023, 12:18 PM - Forum: Virtuino 6
- Replies (7)
|
 |
Hi,
Ilias, I would like your opinion on my approach
I want to use the ESP32 in AP mode to initialize STA mode. So I synchronize text variables (conversions of char SSID and char password).
As Virtuino 6 allows to declare text variables T[], to synchronyse them i have declared an array of String :
String T[10]; // array for 10 text values
This allows enums, easy to use in the code than V40, V41... as text :
enum ePinsAP {
eButtonValid = 0, // Virtuino virtual V Memory V[0]
eSsidNetwork = 1, // Virtuino virtual T Memory T[1]
ePwNetWork = 2,
};
... Setup ...
V[eButtonValid] = 0; // Valid SSID_STA
T[eSsidNetwork] = "";
T[ePwNetWork] = "";
So I added an "if (variableType == 'T')" test in the onReceived and onRequested functions :
void onReceived(char variableType, uint8_t variableIndex, String valueAsText) {
if (variableType == 'V') {
// Modified to take case of text values
// float value = valueAsText.toFloat(); // convert the value to float. The valueAsText have to be numerical
if (variableIndex < V_memory_count) {
float value = valueAsText.toFloat(); // convert the value to float. The valueAsText have to be numerical
V[variableIndex] = value; // copy the received value to arduino V memory array
}
// else if (variableIndex == 40) V40 = valueAsText;
// ..
}
if (variableType == 'T') {
T[variableIndex] = valueAsText;
}
}
String onRequested(char variableType, uint8_t variableIndex) {
if (variableType == 'V') {
if (variableIndex < V_memory_count) return String(V[variableIndex]); // return the value of the arduino V memory array
// else if (variableIndex == 40) return V40; // return the value of the V0 variable
//..
}
if (variableType == 'T') {
return T[variableIndex];
}
return "";
}
It works well. But I read that you don't recommend using T[] variables.
Will you remove them in future versions of virtuino 6 ?
For this use, i would be disappointed.
Thanks for your opinion.
Denis
|
|
|
Virtuino 6 Viewer |
Posted by: spidgrou - 04-26-2023, 10:32 PM - Forum: Virtuino 6
- Replies (2)
|
 |
Hi,
I have problem with the viewer on Android 11. After run the app always close by itself After a few seconds.
On Android 13 it is no longer available on PlayStore.
No problem with Virtuino 6.
Is it an app that at some point will no longer support?
Thanks
Max
|
|
|
Virtuino IOT chrashes on IOS 15.7.4 |
Posted by: yves - 04-21-2023, 05:58 PM - Forum: Virtuino IoT
- Replies (2)
|
 |
Hi,
I'm using Virtuino since many months on Iphones 5SE and now 7 w/o any issues and to my full satisfaction (even the pro version).
But since a few days, after not using it for about 10 days, it crashes immediatly at start.
IOS version is 15.7.5 now, same with the previous version 15.7.4.
Unfortunately, I don't know with which version it had been working.
Re-Installation from the Appstore did not help.
Did anybody experienced the same?
Thanks for any hint to fix this.
Kind regards, Yves
|
|
|
Icon editor |
Posted by: Dkyndt - 04-16-2023, 02:42 PM - Forum: Virtuino IoT
- No Replies
|
 |
Hi all,
I just want to share you the Icon editor I use for customizing icons for my HMI.
Greenfish Icon editor.
It's free, and very simple to use.
Greenfish Icon editor
|
|
|
Rotary switch: default starting position |
Posted by: Dkyndt - 04-13-2023, 05:41 AM - Forum: Virtuino IoT
- Replies (2)
|
 |
Is there a way that I can set a starting position for a rotary switch?
Can I also retain this position?
Let say I have a switch with 3 positions:
Pos 1: Off
Pos 2: auto
Pos 3: on
I want the switch to always be in position 2, except for when I change it.
|
|
|
|