Skip to content

Commit

Permalink
Merge pull request #107 from particle-iot/fix/remove-older-pb-handling
Browse files Browse the repository at this point in the history
Use `sendProtobufRequest` in wifi-device to return a simpler response object
  • Loading branch information
keeramis authored May 29, 2024
2 parents 504c86a + 8e574d8 commit d7e7c16
Show file tree
Hide file tree
Showing 6 changed files with 183 additions and 246 deletions.
18 changes: 11 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"reinstall": "npm run clean && rm -rf ./node_modules && npm i"
},
"dependencies": {
"@particle/device-os-protobuf": "^2.4.2",
"@particle/device-os-protobuf": "^2.5.0",
"ip-address": "^9.0.5",
"protobufjs": "^6.11.3",
"usb": "^2.11.0"
Expand Down
1 change: 1 addition & 0 deletions src/address-util.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Convert a buffer to a MAC address string
function convertBufferToMacAddress(buffer) {
if (!buffer) {
return buffer;
Expand Down
3 changes: 3 additions & 0 deletions src/wifi-device-legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* However, it can still be used on Paticle Photon devices running
* Device OS systems firmware from 0.8.0 to pre 2.0.0.
*/

// TODO: Remove the legacy behavior!

const { Request } = require('./request');
const { fromProtobufEnum, fromProtobufMessage, toProtobufMessage } = require('./protobuf-util');
const { definitions: proto } = require('@particle/device-os-protobuf');
Expand Down
Loading

0 comments on commit d7e7c16

Please sign in to comment.