mirror of
https://github.com/aljazceru/meshcore-web.git
synced 2025-12-17 16:24:18 +01:00
fix saving settings on rak via ble, we can't send too many packets to radio at once
This commit is contained in:
@@ -150,12 +150,15 @@ class Connection {
|
||||
}
|
||||
|
||||
static async setAdvertName(name) {
|
||||
await GlobalState.connection.sendCommandSetAdvertName(name);
|
||||
await GlobalState.connection.setAdvertName(name);
|
||||
}
|
||||
|
||||
static async setRadioParams(radioFreq, radioBw, radioSf, radioCr, txPower) {
|
||||
await GlobalState.connection.sendCommandSetTxPower(txPower);
|
||||
await GlobalState.connection.sendCommandSetRadioParams(radioFreq, radioBw, radioSf, radioCr);
|
||||
static async setTxPower(txPower) {
|
||||
await GlobalState.connection.setTxPower(txPower);
|
||||
}
|
||||
|
||||
static async setRadioParams(radioFreq, radioBw, radioSf, radioCr) {
|
||||
await GlobalState.connection.setRadioParams(radioFreq, radioBw, radioSf, radioCr);
|
||||
}
|
||||
|
||||
static async syncDeviceTime() {
|
||||
|
||||
Reference in New Issue
Block a user