helium / longfi-arduino

Apache License 2.0
62 stars 47 forks source link

Example code needs update! #30

Closed beegee-tokyo closed 3 years ago

beegee-tokyo commented 3 years ago

Please read
Installation for WisBlock Core Arduino BSP has changed and
Updated LoRa/LoRaWAN library and impacts on your source codes

Code line 141 in the RAKwireless WisBlock example needs to be changed to:

err_code = lmh_init(&lora_callbacks, lora_param_init, doOTAA, CLASS_A, LORAMAC_REGION_US915);

With the last parameter set to one of


    LORAMAC_REGION_AS923
    LORAMAC_REGION_AU915
    LORAMAC_REGION_CN470
    LORAMAC_REGION_CN779
    LORAMAC_REGION_EU433
    LORAMAC_REGION_EU868
    LORAMAC_REGION_IN865
    LORAMAC_REGION_KR920
    LORAMAC_REGION_US915
    LORAMAC_REGION_US915_HYBRID