Hi MaVo, this was an Arduino Uno - I had some problems with subscribing to publishPin, but this worked for my setup.  I just enabled pin 14 which is an analog pin and a stream of values became accessable.

 

You should be able to add or remove from streaming array of PinData with more enables or disables

I added another analog pin 15 & a digital one #8

Is your setup very different ?  BTW I did get a null pointer error when subscribing to publishPin which should be turned into an issue.

 

https://github.com/MyRobotLab/myrobotlab/issues/268 

MaVo

6 years 3 months ago

Thank you for this example.

publishPinArray is worky, publishPin not. Only tried publishPin, damn it..