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

get_wake_reason does not exist in pycoproc_2 #159

@yadomi

Description

@yadomi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions