1*** Variables ***
2${UART}                       sysbus.usart2
3${URI}                        @https://dl.antmicro.com/projects/renode
4
5${MB85RC1MT}=     SEPARATOR=
6...  """                                         ${\n}
7...  using "platforms/cpus/stm32l072.repl"       ${\n}
8...  bme280: I2C.BME280@ i2c1 0x76               ${\n}
9...  """
10
11*** Keywords ***
12Create Machine
13    Execute Command          using sysbus
14    Execute Command          mach create
15    Execute Command          machine LoadPlatformDescriptionFromString ${MB85RC1MT}
16    Execute Command          sysbus LoadELF ${URI}/b_l072z_lrwan1--zephyr-bme280_test.elf-s_649120-15b7607a51b50245f4500257c871cd754cfeca5a
17
18*** Test Cases ***
19Should Read Measurements
20    Create Machine
21    Create Terminal Tester    ${UART}
22
23    Execute Command           i2c1.bme280 Temperature 25
24    Execute Command           i2c1.bme280 Humidity 60
25    Execute Command           i2c1.bme280 Pressure 1000
26
27    Wait For Line On Uart     temperature: 25.0
28    Wait For Line On Uart     humidity: 60.231445
29    Wait For Line On Uart     pressure: 999.84414
30