Skip to content

remote hardware tests#247

Merged
mkinney merged 4 commits intomeshtastic:masterfrom
mkinney:remote_hardware
Jan 28, 2022
Merged

remote hardware tests#247
mkinney merged 4 commits intomeshtastic:masterfrom
mkinney:remote_hardware

Conversation

@mkinney
Copy link
Copy Markdown
Contributor

@mkinney mkinney commented Jan 28, 2022

Fix #110
Fix #109

Note: The gpio_watch does not report the value immediately. It was taking 15-20 seconds for my test setup of 3 devices in same room.

% meshtastic --gpio-watch 0x200000 --dest '!f26682c0'
Connected to radio
Watching GPIO mask 0x200000 from !f26682c0. Press ctrl-c to exit
Received RemoteHardware typ=GPIOS_CHANGED, gpio_value=0 value=0
Received RemoteHardware typ=GPIOS_CHANGED, gpio_value=0 value=0
Received RemoteHardware typ=GPIOS_CHANGED, gpio_value=0 value=0
Received RemoteHardware typ=GPIOS_CHANGED, gpio_value=0 value=0
Received RemoteHardware typ=GPIOS_CHANGED, gpio_value=0 value=0
Received RemoteHardware typ=GPIOS_CHANGED, gpio_value=0 value=0
Received RemoteHardware typ=GPIOS_CHANGED, gpio_value=2097152 value=2097152
Received RemoteHardware typ=GPIOS_CHANGED, gpio_value=2097152 value=2097152
Received RemoteHardware typ=GPIOS_CHANGED, gpio_value=2097152 value=2097152
Received RemoteHardware typ=GPIOS_CHANGED, gpio_value=2097152 value=2097152
$ meshtastic --gpio-wrb 21 1 --dest '!f26682c0' --port /dev/ttyUSB0
Connected to radio
Writing GPIO mask 0x200000 with value 0x200000 to !f26682c0

@vercel vercel Bot temporarily deployed to Preview January 28, 2022 00:55 Inactive
@vercel vercel Bot temporarily deployed to Preview January 28, 2022 01:01 Inactive
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 28, 2022

Codecov Report

Merging #247 (66866a4) into master (592ecc9) will increase coverage by 0.92%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #247      +/-   ##
==========================================
+ Coverage   93.35%   94.27%   +0.92%     
==========================================
  Files          12       12              
  Lines        1866     1869       +3     
==========================================
+ Hits         1742     1762      +20     
+ Misses        124      107      -17     
Flag Coverage Δ
unittests 94.27% <100.00%> (+0.92%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
meshtastic/__main__.py 99.33% <100.00%> (+2.82%) ⬆️
meshtastic/remote_hardware.py 100.00% <100.00%> (ø)

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 592ecc9...66866a4. Read the comment docs.

@vercel vercel Bot temporarily deployed to Preview January 28, 2022 01:05 Inactive
@vercel vercel Bot temporarily deployed to Preview January 28, 2022 01:09 Inactive
@mkinney mkinney merged commit 7979efc into meshtastic:master Jan 28, 2022
@mkinney mkinney deleted the remote_hardware branch January 28, 2022 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GPIO Watch crash if write gpio to 0 GPIO Read and Watch broken: need to wait

1 participant