Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 7,483
» Latest member: lolfurevkc
» Forum threads: 163
» Forum posts: 627

Full Statistics

Online Users
There are currently 22 online users.
» 3 Member(s) | 16 Guest(s)
Bing, Google, Yandex, Alexander P

Latest Threads
Virtuino 6--BUTTONS
Forum: Virtuino 6
Last Post: CRONO
9 hours ago
» Replies: 0
» Views: 4
Virtuino 6 and Registe ID
Forum: Virtuino 6
Last Post: Vitto51
11 hours ago
» Replies: 0
» Views: 8
connection outside wifi n...
Forum: Virtuino IoT
Last Post: Serguei
05-26-2023, 07:14 PM
» Replies: 2
» Views: 108
Virtuino IOT and ESP-01
Forum: Virtuino IoT
Last Post: krzycho
05-25-2023, 08:36 AM
» Replies: 4
» Views: 91
Projekte öffnen nicht meh...
Forum: Virtuino 6
Last Post: iliaslamprou
05-24-2023, 09:57 PM
» Replies: 3
» Views: 84
other languages
Forum: Virtuino IoT
Last Post: iliaslamprou
05-21-2023, 11:18 PM
» Replies: 5
» Views: 453
Log file
Forum: Virtuino IoT
Last Post: iliaslamprou
05-15-2023, 11:12 PM
» Replies: 3
» Views: 124
Virtuino SE examples
Forum: Virtuino 6
Last Post: Dr. Mario
05-15-2023, 09:53 AM
» Replies: 2
» Views: 114
M memory usage on Server'...
Forum: Virtuino 6
Last Post: Araqel
05-14-2023, 10:47 PM
» Replies: 4
» Views: 149
Original test sketches tr...
Forum: Virtuino 6
Last Post: Araqel
05-10-2023, 03:54 PM
» Replies: 4
» Views: 161

 
  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

Print this item

Exclamation Virtuino IoT application crashed
Posted by: IVR - 04-27-2023, 01:11 PM - Forum: Virtuino IoT - Replies (3)

Hi, I am using Virtuino IoT latest version on Asus ZenPad080 Tablet Android 6.0, as soon as I run the application it crashes.

I would need to know how come. The error is : Virtuino IoT application crashed. Thank you

Print this item

  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

Print this item

  Virtuino and ESP32 in AP mode
Posted by: Dionysos - 04-25-2023, 09:06 PM - Forum: Virtuino 6 - No Replies

        Hello,

I want to connect an ESP32 in AP mode to define, with VirtuinoCM, the SSID and the password of the web server which will then be used in STA mode.


In STA mode: everything works fine.

In AP mode:
On Smartphone I select Wifi on the ESP32 network with the ESP32 password.

With the Smartphone I get a response to the ping to ESP32 IP (192.168.4.1). Connection is OK.

With Virtuino  I set up a network: Wifi/ESP32/VirtuinoCM, IP (192.168.4.1) and password (12345678) of the ESP32 server.
Connection test always fails (Smartphone in Wifi  AP mode) with port 80 or any other.

Is it possible to synchronize Virtuino with a server in AP mode?
If so, what am I doing wrong?


Thanks.

Print this item

Photo Hidden frames
Posted by: Dionysos - 04-25-2023, 12:56 PM - Forum: Virtuino 6 - Replies (2)

Hello


Thank you Illias for this great App that I use a lot.

I use slightly transparent images, able or disabled depending on the position of a slider, to hide portions of the screen.
It's quite tedious since each time you need a new image of the right size to mask.

   

I tried to use frames, which are more flexible. They can change color according to instructions, but unfortunately backcolor cannot be hidden.

Am I missing something with these frames?

Thanks

Print this item

  Virtuino 6 panel duplicate
Posted by: vovaself - 04-24-2023, 11:22 AM - Forum: Virtuino 6 - Replies (1)

Hi
I have Virtuino 6
How can I 
1. duplicate the whole panel
2. copy/paste the group of widgets  ?

Thanks

Print this item

  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

Print this item

  Javascript: dec to hex + slicing
Posted by: Dkyndt - 04-19-2023, 09:02 PM - Forum: Virtuino IoT - Replies (2)

Hi, I have this javascript that should work.

However, the output does not result in HEX numbers.

var inputValue =  1224277079131226000.0 the
var hex = inputValue.toString(16).toUpperCase();
  var hexsliced = hex.slice(0,-4);
result = '{"tag":"outputTag", "value":"'+ hexsliced + '"}';


I expect the output to be "10FD81845845"
Currently it results "1224277079131226"

Can youplease help me out further?



Attached Files Thumbnail(s)
   
Print this item

  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

Print this item

  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.

Print this item