Change gateway_ID on AEP model

Home Forums Conduit: AEP Model Change gateway_ID on AEP model

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20965
    Florian
    Participant

    Hello,

    we need to change the gateway_ID in global_conf.json

    configuration we put into the web frontend are always overwritten with system some system configuration.

    how can we change the gateway_ID same way we do with server and port ?

    #20966
    Jason Reiss
    Keymaster

    The system will use the id programmed into the MTAC_LORA card. To override the behavior the init script must be modified.

    Edit /etc/init.d/lora-network-server
    Replace line 132 with either of the following curl lines.
    We will consider implementing the second option for future AEP release.

    
    # Remove the replacement out-right
    curl -m 5 -s "127.0.0.1/api/loraNetwork/lora/packetForwarderConfig" | jsparser -p /result > /var/run/lora/1/global_conf.json
    

    OR

    
    # Replace only if a placeholder is found with angled brackets in gateway_ID field. Added <.*> between quotes \")[^\"
    curl -m 5 -s "127.0.0.1/api/loraNetwork/lora/packetForwarderConfig" | jsparser -p /result | sed "s/\(.*gateway_ID\"\s*\:\s*\"\)<.*>[^\"]*\(.*\)/\1${lora_eui_raw}\2/g" > /var/run/lora/1/global_conf.json
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.