Cannot access gpin in code
-
Hi,
Testing firmware 3.3 beta 2 on a 6HC.
I created a gpin:
As you can see It appears in the DWC Object Model browser and correctly displays the input state.
However trying to execute echo sensors.gpin[0].value from the DWC console yields an error message Error: meta command: unknown value 'gpin^.value'
Any ideas why?
Frederick
-
Have you tried copying the value from the object browser?
In the screenshot it seems to be capital letter I in gpIn and your echo command is all lower case. -
@hmortensen said in Cannot access gpin in code:
Have you tried copying the value from the object browser?
In the screenshot it seems to be capital letter I in gpIn and your echo command is all lower case.Good catch - you must have sharp eyes.
For some reason things are case-sensitive and the lower case letter was the problem.
Thanks much.
Frederick
-
This post is deleted!