Commit Graph

501 Commits

Author SHA1 Message Date
John Dyer
601d3f9aa1
Use trust_store instead of ca_path for mqtt integration. (#47) 2022-10-04 15:44:59 +01:00
Orne Brocaar
4282d3aedc Update clap to v4. 2022-10-03 15:11:53 +01:00
Orne Brocaar
a91fb1f73e Bump version to 4.0.2 2022-09-28 13:05:13 +01:00
Orne Brocaar
b19038e664 Update README. 2022-09-28 12:55:48 +01:00
Orne Brocaar
0940260541 Fix client_cert_lifetime value in configfile template. 2022-09-28 12:38:37 +01:00
Orne Brocaar
51b622e8e2 Fix terminating stream loop on client disconnect.
As the spawn_blocking thread is not terminated when the frame_log_future
is dropped, it would keep the Redis connection open. By closing the
redis_rx channel on client-disconnect, we can check if the channel has
been closed inside the spawn_blocking thread, and return if this is the
case.

Closes #40.
2022-09-28 12:25:33 +01:00
Orne Brocaar
ea0f84b93d Bump version to 4.0.1 2022-09-28 09:14:53 +01:00
Orne Brocaar
091e3b0f97 Remove bandwidth * 1000 as it is already in Hz.
This fixes the missing per DR stats in the gateway dashboard.
2022-09-27 15:56:04 +01:00
Orne Brocaar
4d000b92e9 Fix PositionSolution decoding from JSON.
Depending the algorithm type, some fields might or might not be present.
This change updates these fields to Option<T>.
2022-09-27 11:28:35 +01:00
Orne Brocaar
2abc85afa6 Revert "LoRa Cloud: use default if value is not present."
This reverts commit 1867140272.
2022-09-27 11:15:53 +01:00
Orne Brocaar
1867140272 LoRa Cloud: use default if value is not present. 2022-09-27 11:03:49 +01:00
Orne Brocaar
e81e57a020 Fix clippy warnings. 2022-09-27 11:02:55 +01:00
Orne Brocaar
709731ab6e Fix reading arguments after clap update. 2022-09-27 10:45:46 +01:00
Orne Brocaar
700a7de19f Run cargo update for rust api crate. 2022-09-26 13:19:18 +01:00
Orne Brocaar
3466ec47df Run cargo update. 2022-09-26 13:10:33 +01:00
Orne Brocaar
bb188949df Update dependencies + fix clippy warnings. 2022-09-26 12:58:01 +01:00
Orne Brocaar
f17250c37f Show region information in UI. 2022-09-15 10:58:37 +01:00
Orne Brocaar
69b3d4a38e Regenerate API files. 2022-09-14 09:46:17 +01:00
Orne Brocaar
84a1c6e1be Bump version to 4.0.0 2022-09-14 09:43:05 +01:00
Orne Brocaar
a43ef72fb2 Fix chart tooltip date format. 2022-09-13 10:15:21 +01:00
Orne Brocaar
331f4bce40 Fix "Error converting from js 'float' into type 'i32'" error. 2022-09-12 12:28:23 +01:00
Orne Brocaar
90c5af20df Update encodeDownlink code template. 2022-09-12 11:52:51 +01:00
Orne Brocaar
b0e61b50d2 Remove old commented-out code. 2022-09-12 11:48:59 +01:00
Orne Brocaar
0fc548d6b4 Fix object > data error in template.
Closes #39.
2022-09-10 12:42:50 +01:00
Cecile Thiebaut
62f981fefe
Use trust_store instead of ca_path. (#37) 2022-09-10 12:32:01 +01:00
Orne Brocaar
cba8da2d05 Bump version to 4.0.0-rc.4 2022-09-05 22:47:47 +01:00
Orne Brocaar
97a235cc80 Remove duplicate code.
This is already handled by the filter_mac_commands function.
2022-09-05 22:38:48 +01:00
Orne Brocaar
8a4b537645 Fix filtering on mac-command conflict and error count. 2022-09-05 14:07:16 +01:00
Orne Brocaar
32889d7052 Make UI proxy work within Compose for development. 2022-09-01 14:50:46 +01:00
Orne Brocaar
4dd441e85d Cleanup DevEUI from DevAddr > DevEUI set, if DS does not exist. 2022-08-31 11:13:51 +01:00
Orne Brocaar
0fa40717e8 Add missing CN470 configuration.
Closes #36.
2022-08-31 09:48:55 +01:00
Orne Brocaar
7e6552df5e Fix missing Kafka key. 2022-08-31 08:49:53 +01:00
Alejandra Buznego
4f08f7ddcb
Add user_id filter when listing tenants with global API key. (#34) 2022-08-31 08:48:11 +01:00
Orne Brocaar
0a5c38d322 Also log txack errors for mac-only downlinks. 2022-08-30 14:02:21 +01:00
Orne Brocaar
3cf05e8fb9 Fix passive-roaming tx ack and save device-session order.
We first need to save the device-session and then handle the tx ack, as
else we are overwriting the frame-counter increment.
2022-08-26 12:54:46 +01:00
Orne Brocaar
46bc4d6038 Use rf_region_encode module for rf_region in ULMetaData. 2022-08-25 10:43:36 +01:00
Orne Brocaar
75f67f8c5c Use default for Description and do not serialize if empty. 2022-08-25 09:52:54 +01:00
Orne Brocaar
ca2961c7b6 Bump version to 4.0.0-rc.3 2022-08-23 08:59:05 +01:00
Orne Brocaar
63b0af6cf3 Remove owning_ref indirect dep by updating prometheus-client.
The owning_ref crate has a vulnerable. The updated prometheus-client no
longer uses owning_ref as a dependency.
2022-08-22 10:54:33 +01:00
Orne Brocaar
d97da8ed50 Fix c > 64 to c >= 64 typo in channel-mask calculation.
Depending the channel-configuration, this would send three LinkADRReq
mac-commands while the same configuration could be send to the device in
two LinkADRReq mac-commands.
2022-08-21 21:48:27 +01:00
Orne Brocaar
3b297ef221 Replace env. variables in config by localhost for .deb and .rpm
The env. variables are used such that the same configuration can be used
for Docker images, .deb and .rpm packages. However, if installing .deb
or .rpm packages, this can be confusing as executing 'chirpstack -c
/etc/chirpstack' will fail because these environment variables are only
available when using systemctl to start the ChirpStack process
(configured in the .service configuration file).
2022-08-21 21:44:36 +01:00
Orne Brocaar
e917f8ea49 Remove default CA and MQTT cert gen. on install.
In case of mult-server deployments, this can be confusing as each VM
generates different certificate files by default, where all instances
must share the same certificate (or at least CA certificate + key).
The other issue is that the MQTT broker certificate must contain the
correct hostname, which can (most of the times) not automatically be
retrieved. Documentation to generate these certificates can be found
here:

https://www.chirpstack.io/docs/guides/mosquitto-tls-configuration.html
2022-08-21 19:56:49 +01:00
Orne Brocaar
424306ab41 Update cpufeatures crate. This fixes an incorrect avx2 check.
In some scenarios, this check returned true while the avx2 extension was
not available (e.g. QEMU emulated CPU).

See for more details: https://github.com/RustCrypto/hashes/pull/386.
2022-08-18 11:37:03 +01:00
Orne Brocaar
613f4562a2 Add config option to allow unknown gateways. 2022-08-18 10:27:55 +01:00
Orne Brocaar
bf6df9c845 Fix shadowing of rx_info and setting location.
The rx_info value was shadowed, and because of this the location was set
on the cloned value, not the original value, making the location set
useless.
2022-08-14 13:49:00 +01:00
Orne Brocaar
d4337b10ab Bump version to 4.0.0-rc.2 2022-08-11 12:04:21 +01:00
Orne Brocaar
77dc247f66 Fix mac_version -> mac_version().
The first returns the Protobuf integer, the second the generated enum
type. The big difference is that the first .to_string() would convert
the Protobuf integer to the same but then as String type, where the
latter returns something like '1.0.3' which is provided by the
fmt::Display trait implementation by ChirpStack.
2022-08-11 11:38:43 +01:00
Orne Brocaar
ca567ca562 Bump version to 4.0.0-rc.1 2022-08-10 12:36:43 +01:00
Orne Brocaar
1a68080ac0 Fix configfile template. 2022-08-10 11:34:52 +01:00
Orne Brocaar
ba7fc75ee6 Fix clippy warnings. 2022-08-10 11:34:33 +01:00