mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
ask for tx power
This commit is contained in:
parent
32472fc842
commit
8dc58d60c4
1 changed files with 10 additions and 1 deletions
11
index.html
11
index.html
|
|
@ -231,8 +231,17 @@
|
|||
await this.connection.sendCommandSetDeviceTime(timestamp);
|
||||
},
|
||||
async sendCommandSetTxPower() {
|
||||
const txPower = 22;
|
||||
|
||||
// ask user for tx power
|
||||
const txPowerString = prompt("Please enter TX power in dBm");
|
||||
if(!txPowerString){
|
||||
return;
|
||||
}
|
||||
|
||||
// update tx power
|
||||
const txPower = parseInt(txPowerString);
|
||||
await this.connection.sendCommandSetTxPower(txPower);
|
||||
|
||||
},
|
||||
async sendCommandSetRadioParams() {
|
||||
const radioFreq = 917375;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue