Update README.md

This commit is contained in:
tuxphone 2020-09-19 15:15:14 +02:00 committed by GitHub
parent d82d0f7e46
commit 7d7e1f85a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 17 deletions

View File

@ -16,21 +16,10 @@ Will work with any packet meeting the radio settings, but the serial output is b
Modify radio settings for your own channels: Modify radio settings for your own channels:
Look for the following defines and change to your needs. The settings will be stored in "ChanSet" and used to configure the radio. Edit the CONFIGURATION block in MeshRadio.h
#define LORA_SPREADING_FACTOR 12 // [SF5..SF12] e.g.
HW_VERSION_EU865 - defines your region (to EU). For US, use HW_VERSION_US, for CN use HW_VERSION_CN etc.
#define LORA_CODINGRATE 4 // [1: 4/5, 2: 4/6, 3: 4/7, 4: 4/8] MESHTASTIC_SPEED 3 - defines your speed to "very long range". Other values are: 0 = short range, 1 = medium range, 2 = long range, 3 = very long range
MESHTASTIC_NAME[12] = {"Default"} - sets yor Channel Name, but without "-Xy" suffix , e.g. use "Test" instead of "Test-A"
#define LORA_CHAN_NUM 0 // Channel Number (meshtastic specific) TX_OUTPUT_POWER 22 - sets output power to 22 dB. Keep in mind the maximums set by law and the hardware
Note: with "HW_VERSION" you select your country/continent settings. For US use HW_VERSION_US, for CN use HW_VERSION_CN. See Meshradio.h
#define HW_VERSION_EU865 // define your region _before_ including MeshRadio.h !
#include "MeshRadio.h"
ChannelSettings ChanSet={ TX_OUTPUT_POWER, ChannelSettings_ModemConfig_Bw125Cr48Sf4096, mPSK, "Default",
LORA_BANDWIDTH, LORA_SPREADING_FACTOR, LORA_CODINGRATE, LORA_CHAN_NUM };