FactbirdHQ / mqttrust

MQTT client for embedded devices, written in rust
53 stars 5 forks source link

Add a minimal working example #19

Closed keisrk closed 2 years ago

keisrk commented 3 years ago

cargo b --example stm32l4xx_ubloxcellular --target thumbv7em-none-eabihf

Log output ``` 0.000000 INFO Peripherals ready 0.000000 INFO Initialization step done 0.000000 INFO Initialising with PWR_ON pin: true and VInt pin: false 0.000000 ERROR Timeout: [AT] 0.000000 ERROR Timeout: [AT] 0.000000 ERROR Timeout: [AT] 0.000000 ERROR Timeout: [AT+CFUN=4] 0.000000 WARN [RETRY] current attempt: 0, retrying state(Configure) in 1000 ms... 0.000000 ERROR Timeout: [AT+CMEE=2] 0.000000 WARN [RETRY] current attempt: 1, retrying state(Configure) in 2000 ms... 0.000000 ERROR Timeout: [AT+CMEE=2] 0.000000 WARN [RETRY] current attempt: 2, retrying state(Configure) in 3000 ms... 0.000000 INFO CCID: [122, 120, 191, 120, 144, 171, 96, 223, 4, 0, 0, 0, 0, 0, 0, 0] 0.000000 WARN [RETRY] current attempt: 0, retrying state(RegisteringNetwork) in 1000 ms... 0.000000 WARN [RETRY] current attempt: 1, retrying state(RegisteringNetwork) in 2000 ms... 0.000000 WARN [RETRY] current attempt: 2, retrying state(RegisteringNetwork) in 3000 ms... 0.000000 INFO [EVENT] CellularRegistrationStatusChanged Utran SearchingNetwork 0.000000 INFO [EVENT] CellularRegistrationStatusChanged Eutran Unknown 0.000000 INFO [EVENT] CellularCellIDChanged 000B8252 0.000000 INFO [EVENT] CellularRegistrationStatusChanged Utran RegisteredRoaming 0.000000 INFO [URC] DataConnectionActivated 0 0.000000 INFO Initilaize done 0.000000 DEBUG Network connected! 0.000000 INFO MQTT connecting.. 0.000000 DEBUG MQTT connected! 0.000000 INFO [EVENT] CellularRegistrationStatusChanged Utran Unknown 0.000000 INFO [EVENT] CellularRadioAccessTechnologyChanged Utran Unknown 0.000000 INFO [EVENT] CellularCellIDChanged 0272AC17 0.000000 INFO [EVENT] CellularRegistrationStatusChanged Eutran RegisteredRoaming 0.000000 TRACE Pingreq 0.000000 TRACE Pingresp 0.000000 TRACE Pingreq 0.000000 TRACE Pingresp 0.000000 TRACE Pingreq 0.000000 TRACE Pingresp 0.000000 INFO [EVENT] CellularCellIDChanged 027E1E21 0.000000 INFO [EVENT] CellularCellIDChanged 0272AC17 0.000000 TRACE Pingreq 0.000000 TRACE Pingresp 0.000000 TRACE Pingreq 0.000000 TRACE Pingresp 0.000000 INFO [EVENT] CellularRegistrationStatusChanged Utran SearchingNetwork 0.000000 INFO [EVENT] CellularRadioAccessTechnologyChanged Utran Unknown 0.000000 INFO [EVENT] CellularRegistrationStatusChanged Eutran Unknown 0.000000 INFO [EVENT] CellularRegistrationStatusChanged Utran Unknown 0.000000 INFO [EVENT] CellularRegistrationStatusChanged Eutran RegisteredRoaming stack backtrace: 0: __aeabi_memset4 at /cargo/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.36/src/arm.rs:213 1: mqttrust::MqttEvent::receive_notification at /home/kei/Blackbird/GitHub/mqttrust/src/lib.rs:259 2: mqttrust::MqttEvent::yield_event at /home/kei/Blackbird/GitHub/mqttrust/src/lib.rs:185 3: mqtt::idle at examples/mqtt.rs:285 4: main at examples/mqtt.rs:55 5: ResetTrampoline at /home/kei/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-rt-0.6.13/src/lib.rs:547 6: Reset at /home/kei/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-rt-0.6.13/src/lib.rs:550 ```
codecov-io commented 3 years ago

Codecov Report

Merging #19 (74803d6) into embedded-nal-v0.2.0 (cbc5ece) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@                 Coverage Diff                  @@
##           embedded-nal-v0.2.0      #19   +/-   ##
====================================================
  Coverage                38.67%   38.67%           
====================================================
  Files                        4        4           
  Lines                      499      499           
  Branches                   126      126           
====================================================
  Hits                       193      193           
  Misses                     244      244           
  Partials                    62       62           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cbc5ece...74803d6. Read the comment docs.