Added a json format send messagem to devices