good starting params

This commit is contained in:
Morgan 'ARR\!' Allen 2020-04-30 22:19:59 -07:00
parent dd4f29b8e5
commit 1eaafbcef0

View file

@ -57,8 +57,8 @@ void app_main(void) {
ESP_LOGI(TAG, "MAC: [%02X:%02X:%02X:%02X:%02X:%02X]", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
//lora.bandwidth = B208;
//lora.codingRate = 5;
lora.bandwidth = B125;
lora.codingRate = 5;
lora.frequency = 915000000;
lora.spreadingFactor = 11;
lora.preamble = DEFAULT_PREAMBLE;
@ -74,7 +74,6 @@ void app_main(void) {
//lora.cad_detected = &handle_lora_caddetected;
lora32_init(&lora);
lora32_set_spreadfactor(&lora, lora.spreadingFactor);
//double dr = lora32_calc_datarate(&lora);
//ESP_LOGI(TAG, "data rate: %fbps", dr);