onoff-model.h 508 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2017 Intel Corporation. All rights reserved.
  7. *
  8. *
  9. */
  10. #define GENERIC_ONOFF_SERVER_MODEL_ID 0x1000
  11. #define GENERIC_ONOFF_CLIENT_MODEL_ID 0x1001
  12. #define OP_GENERIC_ONOFF_GET 0x8201
  13. #define OP_GENERIC_ONOFF_SET 0x8202
  14. #define OP_GENERIC_ONOFF_SET_UNACK 0x8203
  15. #define OP_GENERIC_ONOFF_STATUS 0x8204
  16. void onoff_set_node(const char *args);
  17. bool onoff_client_init(uint8_t ele);