add check wifi state
Merge https://github.com/infocorenj/Traffic