Skip to content

Commit

Permalink
0.49.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wbouvy committed Jun 4, 2020
1 parent 88faea6 commit 8387f2f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog Hiber API

### 0.49.1 (2020-06-04)

#### Changes

##### ModemService

- Added `gateway_info` to `Modem`, with gateway-specific information, iff the modem is a gateway.
- Added `connected_device_info` to `Modem`, with specific information, iff the modem is a connected device.
This replaces the `connected_to_gateway` and `external_device_ids` fields on `Modem`, which are now deprecated.

### 0.49 (2020-05-18)

This release contains a few minor additions to the API.
Expand Down
43 changes: 37 additions & 6 deletions modem.proto
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,53 @@ message Modem {
repeated hiber.tag.Tag tags = 10;

/* [DEPRECATED] Whether the modem is a gateway, it has been configured as a gateway and has connected devices.
* Use `type` in stead.
* Use `type` instead.
*/
bool is_gateway = 20 [deprecated = true];

/* [DEPRECATED] Whether the modem is connected to a modem configured as a gateway.
* Use `type` in stead.
* Use `type` instead.
*/
bool is_device_connected_to_gateway = 21 [deprecated = true];
/* The modem number that this modem is connected to, if any. */
string connected_to_gateway = 22;
/* External device ids, if any. */
repeated string external_device_ids = 23;

/* [DEPRECATED] The modem number that this modem is connected to, if any.
* Use `connected_device_info.connected_to_gateway` instead.
*/
string connected_to_gateway = 22 [deprecated = true];

/* [DEPRECATED] External device ids, if any.
* Use `connected_device_info.external_device_ids` instead.
*/
repeated string external_device_ids = 23 [deprecated = true];

/* The type of modem.
* Used mainly to differentiate in the UI or to sort on.
*/
Modem.Type type = 25;

/** Additional information when this modem is a gateway. */
GatewayInfo gateway_info = 26;

/** Additional information when this modem is a connected device. */
ConnectedDeviceInfo connected_device_info = 27;

/** Additional information when this modem is a gateway. */
message GatewayInfo {
int32 number_of_connected_devices = 1;
}

/** Additional information when this modem is a connected device. */
message ConnectedDeviceInfo {
/* The gateways that this modem is connected to.
* This field reflects the gateway that processed the last message for this modem.
* If the modem is connected to multiple gateways, the last used gateway is tracked here.
*/
string connected_to_gateway = 1;

/* External device ids for this modem. */
repeated string external_device_ids = 2;
}

message TechnicalData {
string hardware_name = 2;
string firmware_version_name = 3;
Expand Down

0 comments on commit 8387f2f

Please sign in to comment.