Commit Graph

300 Commits

Author SHA1 Message Date
Max Reble
837e13a586
Adds C# builds and namespaces (#100)
Co-authored-by: Max Reble <max.reble@aco.com>
2023-01-31 18:29:21 +00:00
Orne Brocaar
81ce56a9a0 Implement get_downlink_data_delay config.
This config option was present in v3 to set a delay before starting the
downlink flow (Class-A) so that an end-application can enqueue a
downlink to be used within the same uplink / downlink transaction.
However, this option was still missing in v4.
2023-01-31 11:28:18 +00:00
Orne Brocaar
7c35fff849 Fix multcast > multicast typo. 2023-01-31 08:41:31 +00:00
Orne Brocaar
66290b9eeb Update README. 2023-01-26 15:32:01 +00:00
Orne Brocaar
aa09d23492
Create FUNDING.yml 2023-01-24 15:11:28 +00:00
Orne Brocaar
1d2f627bbb Bump version to 4.2.0 2023-01-24 12:23:44 +00:00
Orne Brocaar
54815f03ca Reset channels to default on AdrAckReq uplink.
As part of the ADR back-off, the device will eventually revert to the
default channel-plan but there is no explicit signalling if this
happened.

This might cause some small overhead in case the device did not (yet)
revert to the default channel-mask, but it avoids scenarios where the
device and NS are out-of-sync.
2023-01-24 09:46:31 +00:00
Orne Brocaar
20b454d519 Fix not recording device-metrics if auto-detect is disabled.
Fixes #94.
2023-01-23 15:28:31 +00:00
dependabot[bot]
69d3169eac
Bump bumpalo from 3.11.0 to 3.12.0 (#95)
Bumps [bumpalo](https://github.com/fitzgen/bumpalo) from 3.11.0 to 3.12.0.
- [Release notes](https://github.com/fitzgen/bumpalo/releases)
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.11.0...3.12.0)

---
updated-dependencies:
- dependency-name: bumpalo
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-23 09:50:14 +00:00
dependabot[bot]
7c68500e81
Bump paho-mqtt from 0.11.1 to 0.12.0 (#96)
Bumps [paho-mqtt](https://github.com/eclipse/paho.mqtt.rust) from 0.11.1 to 0.12.0.
- [Release notes](https://github.com/eclipse/paho.mqtt.rust/releases)
- [Changelog](https://github.com/eclipse/paho.mqtt.rust/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eclipse/paho.mqtt.rust/compare/v0.11.1...v0.12.0)

---
updated-dependencies:
- dependency-name: paho-mqtt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-23 09:50:05 +00:00
dependabot[bot]
25f1b224f7
Bump tokio from 1.23.1 to 1.24.2 (#97)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.23.1 to 1.24.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/commits)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-23 09:49:56 +00:00
dependabot[bot]
cdb92d6772
Bump async-trait from 0.1.61 to 0.1.63 (#98)
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.61 to 0.1.63.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.61...0.1.63)

---
updated-dependencies:
- dependency-name: async-trait
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-23 09:49:46 +00:00
dependabot[bot]
fb73e09337
Bump serde_json from 1.0.85 to 1.0.91 (#99)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.85 to 1.0.91.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.85...v1.0.91)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-23 09:49:34 +00:00
Orne Brocaar
a36d323f2b Migrate to topic prefix instead of individual topic config.
This makes the configuration easier, as well if new topics are added in
the future, there is no need to update all the configuration files
again to add the missing topic configuration.
2023-01-19 12:01:20 +00:00
Orne Brocaar
b6209d760e Bump version to 4.2.0-test.1 2023-01-16 11:14:05 +00:00
dependabot[bot]
e850d74d60
Bump openidconnect from 2.3.2 to 2.5.0 (#92)
Bumps [openidconnect](https://github.com/ramosbugs/openidconnect-rs) from 2.3.2 to 2.5.0.
- [Release notes](https://github.com/ramosbugs/openidconnect-rs/releases)
- [Commits](https://github.com/ramosbugs/openidconnect-rs/compare/2.3.2...2.5.0)

---
updated-dependencies:
- dependency-name: openidconnect
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-16 09:51:02 +00:00
dependabot[bot]
74c9c85bab
Bump async-trait from 0.1.57 to 0.1.61 (#90)
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.57 to 0.1.61.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.57...0.1.61)

---
updated-dependencies:
- dependency-name: async-trait
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-16 09:50:22 +00:00
dependabot[bot]
8c2610e577
Bump serde from 1.0.145 to 1.0.152 (#89)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.145 to 1.0.152.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.152)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-16 09:50:10 +00:00
dependabot[bot]
d8f2b97d03
Bump prost-types from 0.11.1 to 0.11.6 (#88)
Bumps [prost-types](https://github.com/tokio-rs/prost) from 0.11.1 to 0.11.6.
- [Release notes](https://github.com/tokio-rs/prost/releases)
- [Commits](https://github.com/tokio-rs/prost/compare/prost-types-0.11.1...v0.11.6)

---
updated-dependencies:
- dependency-name: prost-types
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-16 09:49:53 +00:00
Orne Brocaar
0e1cdf1e17 Fix typo in 'Every 128 seconds' option value. 2023-01-13 10:32:28 +00:00
Orne Brocaar
ef93445bc9 Update class-b ping-slot data-rate config examples. 2023-01-12 16:38:03 +00:00
Orne Brocaar
24d9b6db54 Add Class-B ping-slot parameters back to device-profile UI.
The device might not always send its periodicity to the network-server
(using mac-commands). As well there is some ambiguity about the default
ping-slot data-rates. While the Regional Parameters Specification
defines the default beacon data-rates, it only defines the default
ping-slot frequency for Class-B.

This also changes the API field from class_b_ping_slot_period to
class_b_ping_slot_nb_k, where ..._k must be between 0 - 7 as defined by
the LoRaWAN Specification. This removes some ambiguity as 'period' could
mean different things in different contexts.
2023-01-12 14:41:42 +00:00
Orne Brocaar
10371e66a2 Update tonic-web to v0.5.0. 2023-01-11 12:38:05 +00:00
dependabot[bot]
a2a0d59982
Bump hyper from 0.14.20 to 0.14.23 (#86)
Bumps [hyper](https://github.com/hyperium/hyper) from 0.14.20 to 0.14.23.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/v0.14.23/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.14.20...v0.14.23)

---
updated-dependencies:
- dependency-name: hyper
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-11 12:12:24 +00:00
dependabot[bot]
8a14808434
Bump tracing-subscriber from 0.3.15 to 0.3.16 (#85)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.15 to 0.3.16.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.15...tracing-subscriber-0.3.16)

---
updated-dependencies:
- dependency-name: tracing-subscriber
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-11 12:12:12 +00:00
dependabot[bot]
5b6d5c00e2
Bump diesel from 2.0.0 to 2.0.2 (#84)
Bumps [diesel](https://github.com/diesel-rs/diesel) from 2.0.0 to 2.0.2.
- [Release notes](https://github.com/diesel-rs/diesel/releases)
- [Changelog](https://github.com/diesel-rs/diesel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/diesel-rs/diesel/compare/v2.0.0...v2.0.2)

---
updated-dependencies:
- dependency-name: diesel
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-11 12:11:56 +00:00
dependabot[bot]
5cf1a486b3
Bump anyhow from 1.0.65 to 1.0.68 (#83)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.65 to 1.0.68.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.65...1.0.68)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-11 12:11:16 +00:00
Orne Brocaar
2759eebad5 Cleanup commented out config. 2023-01-11 11:26:54 +00:00
dependabot[bot]
e256c70bc7
Bump decode-uri-component from 0.2.0 to 0.2.2 in /ui (#80)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-11 11:25:49 +00:00
Orne Brocaar
add5bb9f06
Create dependabot.yml 2023-01-11 11:22:18 +00:00
Orne Brocaar
e57748087c Add back crc_status to UplinkRxInfo.
This is needed for implementing
https://github.com/chirpstack/chirpstack-concentratord/issues/29.
2023-01-11 11:13:47 +00:00
dependabot[bot]
1ebf5e7179
Bump tokio from 1.21.1 to 1.23.1 in /api/rust (#81)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.21.1 to 1.23.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.21.1...tokio-1.23.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-11 11:07:34 +00:00
Orne Brocaar
9f3a76f5fb Add --pyi_out flag to generate Python type information.
Closes #68.
2023-01-11 11:01:55 +00:00
Orne Brocaar
438d120fb0 Make gateway state consistent + make stats interval configurable.
This:

* Makes the gateway stats interval configurable (default 30 sec)
* Adds GatewayState type (NEVER_SEEN, OFFLINE, ONLINE)
* Adds gateway state to gateway lists
* Fixes dashboard inconsistencies

Closes #76.
2023-01-11 10:51:53 +00:00
dependabot[bot]
d065df2805
Bump json5 from 1.0.1 to 1.0.2 in /ui (#79)
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-11 10:50:06 +00:00
dependabot[bot]
85a064ea5b
Bump tokio from 1.21.1 to 1.23.1 (#78)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.21.1 to 1.23.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.21.1...tokio-1.23.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-11 10:49:32 +00:00
Orne Brocaar
687c3f21ec Add missing <Admin> block around Delete device + format code.
The <Admin> block hides components when the user doesn't have sufficient
permissions to perform an UI action. Without this the 'Delete device'
button was visible, but on click, the user would be redirect to the
login page due to permission issues (API).

Fixes #71.
2023-01-10 16:50:13 +00:00
Orne Brocaar
ac30f68d85 Update .gitignore + re-generate API. 2023-01-10 15:57:06 +00:00
Stian
74b5d1a7ca
Protobuf Java and Kotlin code generation. (#64)
Co-authored-by: Stian Brandt <stian.brandt@it-smurfan.no>
2023-01-10 15:46:04 +00:00
Orne Brocaar
b24ca28adb Fix java_outer_classname for request_log.proto.
See #64.
2023-01-10 15:43:21 +00:00
Orne Brocaar
e5e0514d9f Fix regions regex (UI). 2023-01-09 13:28:08 +00:00
Orne Brocaar
02d66b8a5d Reset registered regions on setup call.
This ensures that each test will reset the regions hashmap.
2023-01-09 13:24:28 +00:00
Orne Brocaar
e78dac316a Fix region config id in gateway list + add link to region. 2023-01-09 12:22:27 +00:00
Orne Brocaar
103e4298fb Add device-profile option to configure region configuration.
By selecting a region configuration, devices using the device-profile
will only stick to the selected region configuration, rather than the
configurations provided by the selected region common-name.

This change also renames the region 'name' option to 'id' in the region
configuration, as well it adds a 'description' to provide a human
readable description, which is used in the drop-down in the UI.

This also fixes the JS API generation. In a previous commit the the
protobuf package was updated, but the latest protobuf compiler no longer
supports generating JS code (this now requires an external plugin). This
has been fixed.

Please note that if you have implemented custom ADR algorithms that are
referring to the 'regionName' key, that you must change this to
'regionConfigId' (see the ADR code example).
2023-01-09 12:04:10 +00:00
Orne Brocaar
6016159c86 Change a.get_ideal_... to Algorithm::get_ideal_...
In the previous change, this method was changed to an associated
function.
2023-01-09 09:49:08 +00:00
Orne Brocaar
0193d783b0 Fix clippy feedback in chirpstack crate. 2023-01-07 20:02:05 +00:00
Orne Brocaar
cee3dd8d9c Fix clippy feedback in lrwn crate. 2023-01-07 19:56:07 +00:00
Orne Brocaar
e6fb1a5bc1 Fix clippy feedback in backend crate. 2023-01-07 19:37:04 +00:00
Orne Brocaar
927a68a436 Bump version to 4.1.3 2022-12-27 11:14:43 +00:00
Orne Brocaar
417179ba54 Fix header z-index issue in UI.
The z-index of the header was set to 2000 because of Leaflet JS zoom
controls going over the header instead of under when scrolling. However,
this caused issues with the notifications and dropdowns (menu and
autocomplete).

Setting the z-index to 1001 is enough to fix the Leaflet JS issues,
without causing other issues.
2022-12-24 10:46:23 +00:00