Go Down

Topic: No update on second property. (oddity) (Read 105 times) previous topic - next topic

ballscrewbob

Oct 05, 2018, 12:43 pm Last Edit: Oct 05, 2018, 01:25 pm by ballscrewbob
Using the following sketch https://create.arduino.cc/editor/ballscrewbob/aa6aca17-dbb1-491e-bd1d-b434a85dbd00/preview

Am simply reading the floating analog values from A0 and A1

Have two items in CLOUD named Change01 and Change02.

Change01 seems to work but does display a value for A0.

Change02 just states "No data yet received"

Ideal situation is that they display the updated value they receive so that it can be acted on in some manner external from the sketch.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

ubidefeo

#1
Oct 05, 2018, 04:04 pm Last Edit: Oct 05, 2018, 04:05 pm by ubidefeo
hi Bob

I see a completely different scenario on the shared sketch.
I guess you've changed the code.
have you figured this out?

I see you setting two int variables using analogRead but you never update test1 and test2 which are the sketch variables connected to the Thing properties.

Let me know if you have figured it out somehow or if I can help any further :)

thank you for all the feedback, by the way

Ubi

ballscrewbob

Hi. yes I know they return INT.

My bad as I meant to say the pin values are just floating themselves with nothing connected to them.
Normally they range from around 300 to 600 depending on the stray EMF so they make an ideal test function for some things as they are quite random.

Nice to meet another team member btw.
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

ballscrewbob

#3
Oct 05, 2018, 04:23 pm Last Edit: Oct 06, 2018, 03:57 am by ballscrewbob
A simple list and / or examples of what can be placed in the callback would be great.
Would also be useful in other documentation / reference for users.

I can read the basic settings from the example, but a glossary would be nice.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up