pycom / pycom-libraries

MicroPython libraries and examples that work out of the box on Pycom's IoT modules
330 stars 379 forks source link

get_wake_reason does not exist in pycoproc_2 #159

Open yadomi opened 2 years ago

yadomi commented 2 years ago

What are the steps to reproduce this issue?

  1. Have a lopy4 with a Pysense 2.0
  2. Use pycoproc_2.py as lib
  3. Call py.get_wake_reason()

What happens?

AttributeError: 'Pycoproc' object has no attribute 'get_wake_reason'

What were you expecting to happen?

Have an actual reason like pycoproc_1

Any other comments?

I've openned an issue earlier in the Documention repo thinking it was a mistake in the doc since I didn't had my LoPy to play with. https://github.com/pycom/pycom-documentation/issues/462

That does not make sense to me that this function is removed in a newer version of the Pysense board

What versions of software are you using?


edit1:

Actually, most of the sleep methods does not exist in pycoproc_2:

piromanas commented 2 years ago

How to overcome this in mean time ?