Accessing values from xdrv_10_scripter.ino #23253
Replies: 4 comments 1 reply
-
Creating an issue is not the way to ask questions, that should be in discussions instead. In your case, there even is a specific category for scripter/SML discussions: |
Beta Was this translation helpful? Give feedback.
-
The topic has been there for over a week - without attention or response. Also its not a problem with scripting. |
Beta Was this translation helpful? Give feedback.
-
That's no reason to post where it is off-topic. I'm not using the scripter, but my general expectation would be that you can have your script produce html for your browser, including for debugging purposes, instead of trying to tear into internals. |
Beta Was this translation helpful? Give feedback.
-
I need the correct access or understanding of the internal storage process. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
Could someone please help me understand how the created variables are saved in xdrv_10_scripter.ino?
By default, 50 variables are specified – 45 of which are floats and 5 are strings. However, given the large number of uncommented "values" and their iterations, I don't understand where they are stored.
My problem is that I would like to access these variables from the script in xdrv_01_9_webserver.ino. I would like to display them there for testing purposes, in the Info menu. My problem now is accessing them.
The manual retrieval from the function SML_GetVal(); (Sensor.ino) always returns 0.00 as well as fvalues[]; (Scripter.ino).
Where is my error? Or where can the data be accessed?
Thank you very much
BernPetermanns
//////German
Könnte mir bitte jemand dabei helfen zu verstehen, wie in der xdrv_10_scripter.ino die angelegten Variablen abgespeichert werden?
Im Standardfall sind 50 Variablen vorgegeben - davon 45 Flots und 5 Strings. Ich verstehe bei der VIelzahl an unkommentierten "values" und deren Itterationen allerdings nicht, wo diese abgelegt werden?
Mein Problem ist es, dass ich gern auf diese Variablen aus dem Scripting in der xdrv_01_9_webserver.ino zugreifen möchte. Dort möchte ich diese zu Testzwekcne anzeigen lassen, in dem Info Menü. Mein Problem ist nun, auf diese zuzugreifen.
Der manuelle Abgriff aus der Funktion SML_GetVal(); (Sensor.ino) liefert immer 0,00 als auch fvalues[]; (Scripter.ino).
Wo liegt mein Fehler? Oder wo kann auf die Daten zugegriffen werden?
Vielen Dank
BernPetermanns
Beta Was this translation helpful? Give feedback.
All reactions