Request Payload Structure
#000000036
{
"endpoint":1,
"method":1,
"uuid":123
}
Parameters:
“body” parameter is not needed in this case.
enum class EndpointType
{
invalid = 0,
deviceInfo,
update,
filesystemUpload,
backup,
restore,
factory,
contacts,
messages,
calllog,
developerMode,
};
enum class Method
{
get = 1,
post,
put,
del
};
Response Payload Structure
{
"body":{
"accessTechnology":"7",
"batteryLevel":"68",
"batteryState":"2",
"caseColour":"gray",
"currentRTCTime":"1626085629",
"deviceToken":"<32-character string"
"deviceSpaceTotal":"14945",
"systemReservedSpace":"2042",
"usedUserSpace":"440",
"gitBranch":"master",
"gitRevision":"58e3688f6",
"gitTag":"release-0.73.1-rc1-11-g58e3688f6",
"networkOperatorName":"Play",
"networkStatus":"1",
"selectedSim":"0",
"signalStrength":"2",
"trayState":"1",
"version": "0.73.1",
"serialNumber": "12345678901234",
"recoveryStatusFilePath": "path/to/recovery_status",
"updateFilePath": "path/to/update_package",
"backupFilePath": "path/to/backup_package",
"syncFilePath": "path/to/sync_package",
},
"endpoint":1,
"status":200,
"uuid":123
}
Parameters:
struct Network
{
enum class Status
{
NotRegistered,
RegisteredHomeNetwork,
Searching,
RegistrationDenied,
Unknown,
RegisteredRoaming
}
enum class AccessTechnology
{
Gsm = 0x00,
Utran = 0x02,
GsmWEgprs,
UtranWHsdpa,
UtranWHsupa,
UtranWHsdpaAndWHsupa,
EUtran, // 7
Unknown = 0xFF
}
};
struct Battery
{
enum class State
{
Discharging,
Charging,
PluggedNotCharging,
}
};
enum class SIM
{
SIM1 = 0,
SIM2,
SIM_FAIL,
SIM_UNKNOWN,
NONE,
}
enum class Tray
{
OUT = 0,
IN
}
Request Payload Structure
{
"endpoint":1,
"method":1,
"uuid":123,
"body": { "fileList":0 }
}
Parameters:
enum class DiagnosticsFileList
{
LOGS = 0,
CRASH_DUMPS,
TDB
}
Response Payload Structure
List of available log files
{
"endpoint":1,
"status":200,
"uuid":123,
"body": {"files":[ "/sys/user/MuditaOS.log",
"/sys/user/MuditaOS.log.1",
"/sys/user/MuditaOS.log.2" ] }
}
Empty response, no log/crash dump files available on a device
#000000036
{
"endpoint":1,
"status":204,
"uuid":123
}