Salamek / huawei-lte-api

API For huawei LAN/WAN LTE Modems
GNU Lesser General Public License v3.0
376 stars 92 forks source link

reconnect api #227

Closed farlongsignal closed 2 weeks ago

farlongsignal commented 2 weeks ago

On B818-263, there's a reconnect API endpoint. "ReconnectAction" seems to only accept 1 as value. This will reconnect the modem if it's disconnected, but seems to not do anything on already established connection.

I found it useful to monitor WAN IP and call reconnect any time the connection drops (my B818-263 seems to drop it every day or so, and without scripting it takes ~15min to reconnect by itself).

Salamek commented 2 weeks ago

THX!