I unpacked the Tenda software and I see only this:
public interface SmartSocketService {
@POST("/getWifi")
k<JsonObject> getAroundWifi();
@GET("/getDetail")
k<JsonObject> getDetail();
@POST("/getLightStatus")
k<JsonObject> getLightStatus();
@POST("/getLed")
k<JsonObject> getLocalLed();
@POST("/getSta")
k<JsonObject> getSocketSwitch();
@POST("/guideDone")
k<JsonObject> setGuideDone(@Body GuideDoneData guideDoneData);
@POST("/setLightStatus")
k<JsonObject> setLightStatus(@Body JsonObject jsonObject);
@POST("/setLed")
k<JsonObject> setLocalLed(@Body JsonObject jsonObject);
@POST("/setNick")
k<JsonObject> setNick(@Body JsonObject jsonObject);
@POST("/setSta")
k<JsonObject> setSocketSwitch(@Body JsonObject jsonObject);
}
The Power consumption is in another place:
public interface WebService {
...
@POST("app/EnergyGet")
k<JsonObject> getDeviceEnergy(@Body DevEnergyBody devEnergyBody);
...
As I see, the data isn’t available via tcp port 5000. Don’t know how to get access to “WebService” interface. Is it possible at all?