send command web is OK with SMS but send command api not send SMS

traccargps12 years ago

hi,

in the web version I send the custom command and I receive the SMS but when I send it via API I receive this state code 200 as a return but I do not receive the SMS. what could be wrong ?
OBS: device_number = my number device

Response - Status Code 200
id:0
data:ST300CMD;Res;device_number;Enable1
deviceId:5
type:custom
textChannel:false
description:teste

Anton Tananaev2 years ago

If you want to send it via SMS, you should set textChannel to true.

traccargps12 years ago

Thanks! It worked!