How to ping the state of a single M42 or M106 value?
-
How do I ping the current M42 S value of a single I/0 switch (0 or 1)?
How do I ping the current M106 S value (0-255)? -
If you install RRF3.2.1 you can use the object model plugin too very easily check the state (and lean the OM structure)
However you are looking for
sensors.gpIn[pin_number].value
&
fans[fan_number].actualValue
Note: the value may not be 0..255, it may be 0..1
-
@OwenD said in How to ping the state of a single M42 or M106 value?:
fans[fan_number].actualValue
Can you tell me the the exact context to type into the console for reading the status of both sensor 1 and fan 0? I'm receiving an error.
That's a nice update for RRF3.2.1. Thanks for bringing that to my attention.
-
@code7 said in How to ping the state of a single M42 or M106 value?:
Can you tell me the the exact context to type into the console for reading the status of both sensor 1 and fan 0? I'm receiving an error.
echo state.gpOut[0].pwm
echo fans[1].actualValue -
Awesome - Thanks!