Errormessage in HiPi

26 views
Skip to first unread message

Otter Koenig

unread,
Sep 16, 2022, 1:54:02 AM9/16/22
to HiPi Perl
Hej,
while using the HiPi-mdules for reading out a BME280 I get the errormessage:

Can't locate object method "sleep_millisesconds" via package "HiPi::Interface::BME280" at /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1/HiPi/Interface/BME280.pm line 72.

Can anybody help me?

raspberry zero w
Linux raspzero3 5.15.32-v7+ #1538 SMP Thu Mar 31 19:38:48 BST 2022 armv7l GNU/Linux

Otter

James Lynes

unread,
Sep 16, 2022, 8:33:54 AM9/16/22
to HiPi Perl
Try installing Time::HiRes. It's used to implement the sleep routine in HiPi::Interface.

James

Otter Koenig

unread,
Sep 17, 2022, 6:02:29 AM9/17/22
to HiPi Perl
Thanks for your answer.

Time HiRes is installed
____
pi@raspzero3:~ $ perl -MTime::HiRes -e 1
pi@raspzero3:~ $
------

I think I was not detailed enough. The Errormessage occurs after a few hundret successfull measures within the program.
There  is no event visible, which caused the behavior.

Otter

Otter Koenig

unread,
Sep 17, 2022, 6:02:44 AM9/17/22
to HiPi Perl
Hej, thanks for answering.
Time:HiRes is installed on the system. I use it time-measureing.
I wasnt that detailed in describing the errorsituation. The error occurs within the run of my program, after a few hundret measurements. There is nothing to be seen. Just after a time the program dies with the errormessage.
Otter

James Lynes schrieb am Freitag, 16. September 2022 um 14:33:54 UTC+2:
Reply all
Reply to author
Forward
0 new messages