Set pet info

Function table: supportPetInfo

Flutter Example:

/// Event for set pet info
/// setPetInfo(
///   evtBase: _VBusEvtBase.base_app_set,
///   evtType: _VBusEvtType.app_set_pet_info),

final json = {
  "pet_type": 1,
  "weight": 450,
  "gender": 0,
  "year": 2024,
  "month": 1,
  "day": 1,
};
libManager.send(evt: CmdEvtType.setPetInfo, json: jsonEncode(json));

JSON fields sent by App:

Field Name Field Type Field Description
pet_type int Pet type: 0 invalid, 1 cat, 2 dog
weight int Weight x100, unit kg
gender int Gender: 0 male, 1 female
year int Birth year
month int Birth month
day int Birth day

JSON fields received by App:

Field Name Field Type Field Description
err_code int 0 means success, non-zero means error code

Notes:

  • It is recommended to check libManager.funTable.supportPetInfo before sending.
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2026-04-07 16:03:47

results matching ""

    No results matching ""