Orne Brocaar
057aed7f50
Fix cargo clippy warnings.
2024-05-08 11:53:34 +01:00
Orne Brocaar
66d0ec2f6f
Speed up cargo check.
...
See also:
https://corrode.dev/blog/tips-for-faster-rust-compile-times/#avoid-procedural-macro-crates .
2024-05-08 11:46:35 +01:00
Orne Brocaar
f475e4f642
Update dependencies.
2024-05-08 10:59:27 +01:00
dependabot[bot]
17ae49ca7d
Bump ejs from 3.1.9 to 3.1.10 in /ui ( #414 )
...
Bumps [ejs](https://github.com/mde/ejs ) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases )
- [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10 )
---
updated-dependencies:
- dependency-name: ejs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 10:56:22 +01:00
Orne Brocaar
18e56957e2
lrwn: Validate max payload sizes for RP002-1.0.4.
2024-05-08 10:41:42 +01:00
Orne Brocaar
99dbefdfec
Add support for handling HomeNSReq requests.
...
In this case, we return the (primary) NetID of the ChirpStack instance.
Supporting the HomeNSReq is useful in the case the roaming ChirpStack
instances are setup to resolve the servers using DNS. In case of OTAA,
the fNS resolves the JoinEUI to a hostname to which it must make the
HomeNSReq. This returns the HNetID, which then can be used to resolve
the hostname of the hNS to which the join-request must be forwarded.
2024-05-07 15:55:37 +01:00
Sajad Abdollahi
26832f3a5f
api: add --depth=1
to googleapis and protobuf clones ( #420 )
2024-05-07 12:21:14 +01:00
Orne Brocaar
40cfa3ddf2
Update rquickjs dependency.
2024-05-07 12:15:24 +01:00
Orne Brocaar
ed9a9b0c88
Exclude disabled devices from Class-B/C scheduler.
...
Closes brocaar/chirpstack-network-server#612 .
2024-05-07 09:31:53 +01:00
Orne Brocaar
4f1a1bbce5
Use mold linker for development.
...
This speeds up check and build times.
2024-05-03 16:32:06 +01:00
Orne Brocaar
c51653d1bc
Fix loading options (onFocus > onDropdownVisibleChange).
...
onFocus is only triggered when when dropdown doesn't have focus where
onDropdownVisibleChange is always triggered when opening / closing the
dropdown.
Closes #334 .
2024-05-03 12:42:33 +01:00
Orne Brocaar
3ec9ee2031
Convert Local to NaiveDateTime before calculating intervals.
...
This makes it a lot easier to iterate over the intervals, as we no
longer have to take into account DST changes that could either result in
an invalid or ambiguous date, or not incrementing by the expected
interval. E.g. incrementing by 1 day resulting in a 23 hour increment
because or DST change.
On returning the metrics, we try to convert the NaiveDateTime back into
a DateTime<Local>, failing that, we skip it rather than failing on it.
Closes #415 .
2024-05-03 12:25:51 +01:00
Orne Brocaar
5f6ccc35fb
Auto-detect if MQTT broker supports shared-subscriptions.
...
Closes #413 .
2024-05-02 14:12:43 +01:00
dependabot[bot]
0d11ad609a
Bump golang.org/x/net from 0.22.0 to 0.23.0 in /api/go ( #406 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 10:39:09 +01:00
dependabot[bot]
fed94a9b75
Bump golang.org/x/net from 0.19.0 to 0.23.0 in /examples/frame_log/go ( #405 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 10:38:59 +01:00
dependabot[bot]
13e26977f4
Bump golang.org/x/net from 0.19.0 to 0.23.0 in /examples/request_log/go ( #404 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 10:38:49 +01:00
dependabot[bot]
0b665c7a11
Bump protobufjs from 7.2.4 to 7.2.6 in /api/js ( #401 )
...
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js ) from 7.2.4 to 7.2.6.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases )
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v7.2.4...protobufjs-v7.2.6 )
---
updated-dependencies:
- dependency-name: protobufjs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 10:38:29 +01:00
dependabot[bot]
3ee4598320
Bump tar from 6.1.15 to 6.2.1 in /api/grpc-web ( #400 )
...
Bumps [tar](https://github.com/isaacs/node-tar ) from 6.1.15 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases )
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md )
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.15...v6.2.1 )
---
updated-dependencies:
- dependency-name: tar
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 10:38:15 +01:00
dependabot[bot]
8adc80bf4e
Bump tar from 6.1.15 to 6.2.1 in /api/js ( #399 )
...
Bumps [tar](https://github.com/isaacs/node-tar ) from 6.1.15 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases )
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md )
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.15...v6.2.1 )
---
updated-dependencies:
- dependency-name: tar
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 10:38:04 +01:00
Orne Brocaar
487f785302
Add option to increase RX1 Delay in device-profile.
...
In general ChirpStack is configured with a rx1_delay configuration
matching the network latency (e.g. on cellular, one might want to set
this to rx1_delay=3). However, this does not take into account a
possible latency of the end-application. Handling the uplink and
enqueueing a downlink might take more time than the configured rx1_delay
(and get_downlink_data_delay) allows.
This option makes it possible to increase the RX1 Delay in the
device-profile. If the RX1 Delay has between increased relative to
the system default, then the get_downlink_data_delay will be
incremented with the same amount of seconds.
2024-05-02 10:29:10 +01:00
Orne Brocaar
a5ff416fa2
Implement storing + display duty-cycle stats.
...
Note that these stats are only available for Concentratord based
gateways as these metrics must be aggregated by the gateway.
2024-04-17 14:34:11 +01:00
Orne Brocaar
2889da37c2
Exclude offline gateways from multicast scheduling.
2024-04-15 14:09:38 +01:00
Orne Brocaar
378b314a32
Update rcgen dependency + cargo update.
2024-04-10 11:52:23 +01:00
Orne Brocaar
9207effb5b
Bump version to 4.8.0-test.2
2024-04-10 10:12:06 +01:00
Orne Brocaar
6ef100c9b7
api: Add back rust/proto directory.
...
This needs to be tracked by git to make cargo publish work. If this
folder is in the .gitignore, then cargo publish will ignore this folder
as well and the publish command will fail because of missing .proto
files. If we would temporarily remove / rename the .gitignore file, then
cargo publish will error because the git state is dirty.
2024-04-04 15:55:59 +01:00
Orne Brocaar
b3ba23f32c
Bump version to 4.8.0-test.1
2024-04-04 15:25:59 +01:00
Orne Brocaar
f283261636
api: Remove Python proto folder.
...
There is no point in tracking this folder in git, as on each make we
will copy it from the original api/proto folder.
2024-04-04 14:30:03 +01:00
Orne Brocaar
ac9923e120
api: Add duty-cycle stats messages + types.
2024-04-04 14:28:24 +01:00
Orne Brocaar
2bb05fba58
Update dependencies.
2024-04-02 11:40:47 +01:00
Orne Brocaar
161cd9008c
Fix multicast class-b ping-slot migration in case value is 0.
2024-04-02 09:25:58 +01:00
Orne Brocaar
c238e8f6da
api: Use protoc-gen-go & -go-grpc from nix.
2024-04-01 14:37:41 +01:00
Orne Brocaar
d170c7dd79
api: Remove generated API files from repo + update build.
...
All these files can be generated using the `make api` command and there
is no real need to commit these into the repo. Only the api/go files
need to be comitted of how the Go import system works.
This also updates the Rust, Go, JS and gRPC-web (JS) code generation and
UI build to use the nix-shell environment instead of using Docker.
2024-04-01 14:27:15 +01:00
SAGAR PATEL
a91f5ff1d3
ui: Fix drawer header z-index issue in UI. ( #393 )
...
The z-index of the header was set to 1000 and the drawer header is behind the UI header so single frame download and title not displaying
Setting the z-index to 1002 is enough to fix the Drawer header issue.
2024-04-01 12:20:10 +01:00
dependabot[bot]
cd179dd16f
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /ui ( #388 )
...
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware ) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases )
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4 )
---
updated-dependencies:
- dependency-name: webpack-dev-middleware
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 14:13:31 +00:00
dependabot[bot]
59271f6966
Bump async-trait from 0.1.78 to 0.1.79 ( #389 )
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.78 to 0.1.79.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.78...0.1.79 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 14:13:18 +00:00
dependabot[bot]
23e0613970
Bump express from 4.18.2 to 4.19.2 in /ui ( #392 )
...
Bumps [express](https://github.com/expressjs/express ) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/master/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2 )
---
updated-dependencies:
- dependency-name: express
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 14:10:24 +00:00
Orne Brocaar
a66f085782
Use PKCS#8 fallback for all private keys reads.
...
This fallback was already implemented for reading the private key when
generating MQTT client-certificates, but it was not used when reading a
private key for connecting to the MQTT broker.
While it is recommended to use PKCS#8 private-keys, this will perform an
auto conversion for RSA PKCS#1 and EC P256 SEC1 private-keys to PKCS#8.
2024-03-27 10:25:22 +00:00
Orne Brocaar
2c06edd6ff
Add auto conversion for SEC1 EC keys to PKCS#8.
...
Fixes #386 .
2024-03-27 09:50:18 +00:00
Orne Brocaar
286d8b33b2
Generate API code.
2024-03-26 16:47:55 +00:00
Orne Brocaar
c71b856c78
Align multicast class-b ping-slot config.
...
This aligns the multicast class-b ping-slot configuration with the way
how it is configured in the device-profile. This deprecates the
class_b_ping_slot_period field in favor of the class_b_ping_slot_nb_k
field, which should be a value between 0 - 7 (this is defined and
explained by the LoRaWAN specification).
Closes #255 .
2024-03-26 16:45:24 +00:00
Orne Brocaar
e96e828d3f
Document that keys need to be in PKCS#8.
...
Closes #386 .
2024-03-26 12:47:20 +00:00
Orne Brocaar
e3752fb19d
Expose more verbose JS codec error output.
...
Closes #391 .
2024-03-26 11:06:43 +00:00
Orne Brocaar
f970e94cca
Show version in UI (for admin users).
...
Closes #73 and #158 .
2024-03-26 09:01:21 +00:00
Orne Brocaar
54b10cb693
ui: Run code formatter.
2024-03-19 14:14:18 +00:00
Orne Brocaar
8cde912fdf
Show error when navigator.clipboard is not available.
...
There can be multiple reasons for this, e.g. it is not supported by the
browser or the browser does not provide this feature because there is no
secure context (HTTP).
Closes #231 .
2024-03-19 14:12:03 +00:00
Orne Brocaar
5a865c924c
Fix setting gateway after 0cd5dd8d31
.
2024-03-19 14:00:47 +00:00
Orne Brocaar
56336fa685
Update dependencies.
2024-03-19 12:41:18 +00:00
Orne Brocaar
c426e48b8d
Update dependencies + fix check / clippy feedback.
2024-03-19 12:15:48 +00:00
Orne Brocaar
9de0354f13
api: Update dependencies.
2024-03-19 10:57:29 +00:00
dependabot[bot]
7e0c18cf00
Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 in /api/go ( #379 )
...
Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0.
---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-19 10:39:55 +00:00