0

I've written some python code using pigpio over a network. I have two questions I can't seem to solve myself:

  • Can I change the timeout when calling the pigpidaemon with pigpio.pi(<ip number>). Sometimes the computer I call is unavailable and the default timeout is very long.

  • Can I prevent the below message from being printed on stdout?


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Can't connect to pigpio at alll(8888)

Did you start the pigpio daemon? E.g. sudo pigpiod

Did you specify the correct Pi host/port in the environment
variables PIGPIO_ADDR/PIGPIO_PORT?
E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888

Did you specify the correct Pi host/port in the
pigpio.pi() function? E.g. pigpio.pi('soft', 8888)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
  • 1
    Perhaps check that the computer is "up" before calling pigpio.pi(). Try a ping or something similar.
    – joan
    Commented Aug 13, 2017 at 20:41
  • I do two different tasks with these calls. First I scan the whole network for computers running pigpiod, there ping wont work. When I then know which computers run pigpiod I call them to control pins, there I could definitely use ping! Thanks! :-)
    – MagnusT
    Commented Aug 14, 2017 at 7:17

1 Answer 1

0

for second part of your questions- the answer is "No".

see joans answer, in similar Q of mine

Not the answer you're looking for? Browse other questions tagged or ask your own question.