from .types import *
from .codes import *

data_single = {
    SMP_SDATA_TEMPERATURE_CODE: INT,
    SMP_SDATA_BATTERY_CODE: DOUBLE(2),
    SMP_SDATA_DATETIME_CODE: DATETIME,
    SMP_SDATA_COUNT_CH1_CODE: NUM,
    SMP_SDATA_COUNT_CH2_CODE: NUM,
}

info = {
    SMP_INFO_VERSION_CODE: BITBUF([8,8,8,8,8,8]),
    SMP_INFO_ID_CODE: NUM,
    SMP_INFO_EXTENSION_VERSION: STRING,
    SMP_INFO_EXTENSION_GSM_IMEI: STRING,
    SMP_INFO_EXTENSION_DESCRIPTION: STRING,
}

option = {
    SMP_OPT_TIME_DATE_CODE: DATETIME,
    SMP_OPT_GSM_APN_NAME: STRING,
    SMP_OPT_SERVER_LOGIN: STRING,
    SMP_OPT_SERVER_PASSWORD: STRING,
    SMP_OPT_SERVER_ADDRESS: STRING,
}

action = {
    SMP_ACTION_CONFIRM_CRC: NUM,
}
