commit | 2d8a5818fe647469785f063f97865a8a03bdd27d | [log] [tgz] |
---|---|---|
author | Asad Memon <asadmemon@google.com> | Tue Aug 30 17:44:33 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Aug 30 17:44:33 2022 +0000 |
tree | be6fcbcdf3b34772db74df7cc6983436283c9c67 | |
parent | 17d9b88febbd7e864d817ffa681305eb7b040818 [diff] |
pw_web: Add a Device helper class to make RPC calls easier Currently only works for UnaryMethods. Example usage: ``` let device = new Device(); device.connect(); ... const [status, response] = await device.rpcs.pw.rpc.EchoService.Echo("Hello"); ``` Change-Id: Icdfbc0d3f325a6c088a3608e86e5421db56dfa07 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/107976 Reviewed-by: Anthony DiGirolamo <tonymd@google.com> Commit-Queue: Asad Memon <asadmemon@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.