-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
958 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
version: 0.1 | ||
cli: | ||
version: 1.22.7 | ||
version: 1.22.8 | ||
plugins: | ||
sources: | ||
- id: trunk | ||
ref: v1.6.4 | ||
uri: https://github.com/trunk-io/plugins | ||
lint: | ||
enabled: | ||
- [email protected].2 | ||
- [email protected].6 | ||
- [email protected] | ||
- [email protected] | ||
- [email protected].277 | ||
- [email protected].287 | ||
- [email protected] | ||
- [email protected] | ||
#- [email protected] | ||
- [email protected] | ||
- [email protected].2 | ||
- [email protected].3 | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected].3 | ||
- [email protected].4 | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import sys | ||
import base64 | ||
|
||
def base64_to_hex_string(b64_string): | ||
try: | ||
# Decode the Base64 string to raw bytes | ||
decoded_bytes = base64.b64decode(b64_string) | ||
except Exception as e: | ||
raise ValueError(f"Invalid Base64 input: {e}") | ||
|
||
# Check if the decoded result is exactly 32 bytes | ||
if len(decoded_bytes) != 32: | ||
raise ValueError("Decoded Base64 input must be exactly 32 bytes.") | ||
|
||
# Convert each byte to its hex representation | ||
hex_values = [f"0x{byte:02x}" for byte in decoded_bytes] | ||
|
||
# Join the formatted hex values with commas | ||
formatted_output = "{ " + ", ".join(hex_values) + " };" | ||
return formatted_output | ||
|
||
if __name__ == "__main__": | ||
# Check if a Base64 string was provided in command line arguments | ||
if len(sys.argv) != 2: | ||
print("Usage: python script.py <base64-string>") | ||
sys.exit(1) | ||
|
||
b64_string = sys.argv[1] | ||
try: | ||
formatted_hex = base64_to_hex_string(b64_string) | ||
print(formatted_hex) | ||
except ValueError as e: | ||
print(e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,15 +154,11 @@ lib_deps = | |
sparkfun/SparkFun 9DoF IMU Breakout - ICM 20948 - Arduino [email protected] | ||
ClosedCube [email protected] | ||
emotibit/EmotiBit [email protected] | ||
dfrobot/[email protected] | ||
sparkfun/SparkFun MAX3010x Pulse and Proximity Sensor [email protected] | ||
adafruit/Adafruit MLX90614 [email protected] | ||
|
||
https://github.com/boschsensortec/Bosch-BSEC2-Library#v1.7.2502 | ||
boschsensortec/BME68x Sensor [email protected] | ||
https://github.com/KodinLanewave/[email protected] | ||
lewisxhe/[email protected] | ||
mprograms/[email protected] | ||
|
||
dfrobot/[email protected] | ||
https://github.com/meshtastic/DFRobot_LarkWeatherStation#4de3a9cadef0f6a5220a8a906cf9775b02b0040d | ||
https://github.com/gjelsoe/STK8xxx-Accelerometer.git#v0.1.1 |
Submodule protobufs
updated
8 files
+10 −0 | meshtastic/admin.proto | |
+1 −0 | meshtastic/device_ui.options | |
+10 −0 | meshtastic/device_ui.proto | |
+2 −1 | meshtastic/deviceonly.options | |
+12 −1 | meshtastic/deviceonly.proto | |
+3 −1 | meshtastic/mesh.options | |
+25 −1 | meshtastic/mesh.proto | |
+12 −0 | meshtastic/telemetry.proto |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.