rokucommunity / roku-debug

A compatibility wrapper around the BrightScript debug protocol https://developer.roku.com/en-ca/docs/developer-program/debugging/socket-based-debugger.md
MIT License
13 stars 9 forks source link

Do device-info query at start of debug session #121

Closed TwitchBronBron closed 1 year ago

TwitchBronBron commented 1 year ago

Certain functionality requires knowledge of what firmware or debug session version we're running, so run a device-info query at the start of a debug session and store that on the session so it's available for the lifetime of that debug session.

The request looks something like this: http://192.168.1.37:8060/query/device-info

The results should be parsed from xml into a usable javascript object /json structure.

Also create a typescript interface called DeviceInfo for all of the known fields. Just copy the info from here into a new interface: https://github.com/rokucommunity/vscode-brightscript-language/blob/100070dee1fe83d0144a7be40a3d55396cfb6e40/src/ActiveDeviceManager.ts#L240

TwitchBronBron commented 1 year ago

This would probably be done somewhere around this line: image