API Changes: Meter Scale and Transmit property of Slice class

  • 1
  • Idea
  • Updated 1 year ago
  • (Edited)
We have made some changes to our API recently that developers may be interested in.

First, we changed the divider for the Voltage type of Meter from 256 to 1024 to give us room for higher voltages that we are monitoring in the Power Genius amplifier.  This change in the ethernet API is handled transparently in FlexLib and will be included in the next public release beyond v1.10.16.

Second, based on feedback from multiple developers, the Transmit property in the Slice class (FlexLib) has been renamed to IsTransmitSlice.  This should help resolve the confusion when some developers would set this property to true and expect the radio to be transmitting when it was simply designating a particular Slice as the Transmit Slice (as the new name reflects).  This change only affects the FlexLib API (not the ethernet API).  This change will also be included in the next public release following v1.10.16.
Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 653 Posts
  • 198 Reply Likes

Posted 1 year ago

  • 1
Photo of John G3WGV

John G3WGV

  • 157 Posts
  • 31 Reply Likes
Hi Eric,

Thanks for the heads-up.

Surely the voltage divisor change must be from 1024 to 256 rather than the other way round?

Will the API protocol version number, currently 1.2.0.0, be changed when these changes are implemented? This seems to be a safer way for Ethernet API software to unambiguously determine which scale value to use.

73, John
Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 653 Posts
  • 198 Reply Likes
You are correct.  The divisor goes from 1024 to 256.

We did indeed bump the API protocol version to v1.3.0.0.
Photo of John G3WGV

John G3WGV

  • 157 Posts
  • 31 Reply Likes
Thanks Eric. My API library code is ready for ya!