diff --git a/monitor/l2cap.c b/monitor/l2cap.c
index 102b7ae..822ebd5 100644
--- a/monitor/l2cap.c
+++ b/monitor/l2cap.c
{
}
+static void att_write_command(const struct l2cap_frame *frame)
+{
+ print_field("Handle: 0x%4.4x", bt_get_le16(frame->data));
+ print_hex_field(" Data", frame->data + 2, frame->size - 2);
+}
+
struct att_opcode_data {
uint8_t opcode;
const char *str;
att_handle_value_ind, 2, false },
{ 0x1e, "Handle Value Confirmation",
att_handle_value_conf, 0, true },
- { 0x52, "Write Command" },
+ { 0x52, "Write Command",
+ att_write_command, 2, false },
{ 0xd2, "Signed Write Command" },
{ }
};