Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

get_wake_reason does not exist in pycoproc_2 #159

Open
yadomi opened this issue Nov 10, 2021 · 1 comment
Open

get_wake_reason does not exist in pycoproc_2 #159

yadomi opened this issue Nov 10, 2021 · 1 comment

Comments

@yadomi
Copy link

yadomi commented Nov 10, 2021

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.
pycom/pycom-documentation#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?

  • LoPy4 and Pysense 2.0. Everything update to date as of today
  • (sysname='LoPy4', nodename='LoPy4', release='1.18.2.r1', version='v1.8.6-849-d6b3616 on 2019-02-22', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1')

edit1:

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

  • get_wake_reason
  • get_sleep_remaining
  • setup_int_pin_wake_up
  • setup_int_wake_up
@piromanas
Copy link

How to overcome this in mean time ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants