Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple-fota-example.js - README tip & improve logs #30

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

JanneKiiskila
Copy link
Contributor

Mbed Edge Examples pull request

Description

Add the tip on the manifest file (vendor and class ID). Add a bit more logging to the example.

Test instructions

Password: 
[EdgePTExample] Press any key to connect Edge.
[EdgePTExample] Connecting to " ws+unix:///tmp/edge.sock:/1/pt "
[EdgePTExample] Connected to Edge
[EdgePTExample] Press any key to register as protocol translator.
[EdgePTExample] Registered as protocol translator. Response: ok
[EdgePTExample] Press any key to register the example device.
[EdgePTExample] Registered an example device. Response: ok
[EdgePTExample] Subdevice FOTA can be started.
[EdgePTExample] Press any key to update example device values.
[EdgePTExample] Received FOTA request
{
  classid: 'U1VCREVWSUNFLS1DTEFTUw==',
  component_name: 'MAIN',
  operation: 4,
  size: 5027472,
  uri: { deviceId: 'example-fota-device' },
  vendorid: 'U1VCREVWSUNFLVZFTkRPUg==',
  version: 'MC4xLjA='
}
[EdgePTExample] Class ID  :  SUBDEVICE--CLASS
[EdgePTExample] Vendor ID :  SUBDEVICE-VENDOR
[EdgePTExample] FW version:  0.1.0
[EdgePTExample] Updating Device, Firmware file location /tmp/MAIN-36028797019029504.bin
[EdgePTExample] Rebooting device.
[EdgePTExample] Manifest Resource updated, Device is updated
[EdgePTExample] Press any key to unregister the example device

Check list

Changelog

  • CHANGELOG.md updated.

Add the tip on the manifest file (vendor and class ID).
Add a bit more logging to the example.
They are sort of hidden now (and they are common to all),
so raise them to the top.
Copy link
Contributor

@jenia81 jenia81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Small fix me in the readme

@JanneKiiskila JanneKiiskila merged commit 9cabdd9 into master Sep 30, 2024
2 checks passed
@JanneKiiskila JanneKiiskila deleted the fota-example-updates branch September 30, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants