added 3 try to send data to server and deactivate the standby

Signed-off-by: fabio <fbi.gritti@gmail.com>