Skip to content

bmp/bme280 first read #1994

@johndoe71rus

Description

@johndoe71rus

First read data bmp/bme280 get error

dofile("bmp280.lua")
bmp280.lua:7: bad argument #2 to 'format' (number expected, got nil)
stack traceback:
[C]: in function 'format'
bmp280.lua:7: in main chunk
[C]: in function 'dofile'
stdin:1: in main chunk

all next readings correct.
I have bme280 and bmp280, check booth.

Code http://paste.ubuntu.com/24710875/
logs http://paste.ubuntu.com/24711075/

i can wait long time to start script. Problem only with the first reading. After power up

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions