I made a netif traffic counter for GSM modem, but I needed to pull unstable esp-idf from master.
I guess it's needed an example for esp-idf to be able to add the traffic counter to future release.
Code: Select all
I (244526) MAIN: VBUS:4913.00 mV 0.00 mA ,BATTERY: 4131.60, charging state 0, Battery percent -4, GSM RSSI 16, GSM BER 0
I (245526) MAIN: Free heap size: 4367184, GSM bytes RX 130491, GSM bytes TX 16008
I (245536) MAIN: Network status 1
I (245536) MAIN: GSM RSSI 16, BER 0
I (245546) MAIN: VBUS:4889.20 mV 0.00 mA ,BATTERY: 4131.60, charging state 0, Battery percent -4, GSM RSSI 16, GSM BER 0
I (246546) MAIN: Free heap size: 4336744, GSM bytes RX 130540, GSM bytes TX 16399
I (246556) MAIN: Network status 1
I (246566) MAIN: GSM RSSI 18, BER 0
I (246566) MAIN: VBUS:4848.40 mV 0.00 mA ,BATTERY: 4129.40, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0
I (247576) MAIN: Free heap size: 4336728, GSM bytes RX 133030, GSM bytes TX 16399
I (247826) MAIN: Network status 1
I (247866) MAIN: GSM RSSI 18, BER 0
I (247866) MAIN: VBUS:4839.90 mV 0.38 mA ,BATTERY: 4122.80, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0
W (247916) MAIN: Some interruption came from AXP192: 0
I (247926) MAIN: Free heap size: 4336728, GSM bytes RX 135060, GSM bytes TX 16581
I (248056) MAIN: Network status 1
I (248066) MAIN: GSM RSSI 18, BER 0
I (248076) MAIN: VBUS:4797.40 mV 0.00 mA ,BATTERY: 4122.80, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0
W (248076) MAIN: Some interruption came from AXP192: 0
I (248186) MAIN: Free heap size: 4327368, GSM bytes RX 137777, GSM bytes TX 16672
I (248326) MAIN: Network status 1
I (248336) MAIN: GSM RSSI 18, BER 0
I (248346) MAIN: VBUS:4868.80 mV 0.00 mA ,BATTERY: 4122.80, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0
W (248646) MAIN: Some interruption came from AXP192: 0
I (248656) MAIN: Free heap size: 4322392, GSM bytes RX 141711, GSM bytes TX 16897
I (248716) MAIN: Network status 1
I (248726) MAIN: GSM RSSI 18, BER 0
I (248736) MAIN: VBUS:4819.50 mV 0.00 mA ,BATTERY: 4122.80, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0
W (248736) MAIN: Some interruption came from AXP192: 0
I (248746) MAIN: Free heap size: 4325448, GSM bytes RX 142410, GSM bytes TX 17084
I (248766) MAIN: Network status 1
I (248776) MAIN: GSM RSSI 18, BER 0
I (248786) MAIN: VBUS:4773.60 mV 0.00 mA ,BATTERY: 4122.80, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0
W (248956) MAIN: Some interruption came from AXP192: 0
I (248956) MAIN: Free heap size: 4325448, GSM bytes RX 142410, GSM bytes TX 17084
I (248976) MAIN: Network status 1
I (248986) MAIN: GSM RSSI 18, BER 0
I (248986) MAIN: VBUS:4397.90 mV 197.62 mA ,BATTERY: 4118.40, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0
W (249016) MAIN: Some interruption came from AXP192: 0
I (249016) MAIN: Free heap size: 4326964, GSM bytes RX 142455, GSM bytes TX 17084
I (249046) MAIN: Network status 1
I (249076) MAIN: GSM RSSI 18, BER 0
I (249076) MAIN: VBUS:4822.90 mV 0.00 mA ,BATTERY: 4118.40, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0
W (249126) MAIN: Some interruption came from AXP192: 0
I (249126) MAIN: Free heap size: 4326356, GSM bytes RX 142779, GSM bytes TX 17318
I (249146) MAIN: Network status 1
I (249146) MAIN: GSM RSSI 18, BER 0
I (249156) MAIN: VBUS:4817.80 mV 0.00 mA ,BATTERY: 4118.40, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0
I (249426) Sending getMe: HTTPS Status = 200, content_length = 23
W (249436) Sending getMe: Got telegram answer: {"ok":true,"result":[]}
W (249436) Sending getMe: Connection closing
I (249436) TelegramBotManagement: HTTP_EVENT_DISCONNECTED
W (249446) TelegramBotManagement: Telegram poll end
I (249446) TelegramBotManagement: HTTP_EVENT_DISCONNECTED
W (249536) MAIN: Some interruption came from AXP192: 0
I (249536) MAIN: Free heap size: 4366856, GSM bytes RX 143272, GSM bytes TX 17366
I (249556) MAIN: Network status 1
I (249566) MAIN: GSM RSSI 18, BER 0
I (249566) MAIN: VBUS:4824.60 mV 0.00 mA ,BATTERY: 4118.40, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0
W (250446) MAIN: Some interruption came from AXP192: 0
I (250446) MAIN: Free heap size: 4366972, GSM bytes RX 143318, GSM bytes TX 17413
I (250466) MAIN: Network status 1
I (250466) MAIN: GSM RSSI 18, BER 0
I (250476) MAIN: VBUS:4877.30 mV 0.00 mA ,BATTERY: 4122.80, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0
I (251476) MAIN: Free heap size: 4366972, GSM bytes RX 143318, GSM bytes TX 17413
I (251486) MAIN: Network status 1
I (251496) MAIN: GSM RSSI 18, BER 0
I (251496) MAIN: VBUS:4913.00 mV 0.00 mA ,BATTERY: 4125.00, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0
I (252496) MAIN: Free heap size: 4366972, GSM bytes RX 143318, GSM bytes TX 17413
I (252506) MAIN: Network status 1
I (252516) MAIN: GSM RSSI 18, BER 0
I (252516) MAIN: VBUS:4899.40 mV 0.00 mA ,BATTERY: 4125.00, charging state 0, Battery percent -4, GSM RSSI 18, GSM BER 0