Skip to content

Commit

Permalink
fix for meta data id == 0 (changed from 9)
Browse files Browse the repository at this point in the history
  • Loading branch information
WAvdBeek committed Nov 17, 2023
1 parent 134eefb commit b9fa669
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions knx_iot_virtual_pb.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ get_OnOff_1(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down Expand Up @@ -624,7 +624,7 @@ get_InfoOnOff_1(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down Expand Up @@ -783,7 +783,7 @@ get_OnOff_2(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down Expand Up @@ -891,7 +891,7 @@ get_InfoOnOff_2(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down Expand Up @@ -1050,7 +1050,7 @@ get_OnOff_3(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down Expand Up @@ -1158,7 +1158,7 @@ get_InfoOnOff_3(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down Expand Up @@ -1317,7 +1317,7 @@ get_OnOff_4(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down Expand Up @@ -1425,7 +1425,7 @@ get_InfoOnOff_4(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down
10 changes: 5 additions & 5 deletions knx_iot_virtual_sa.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ get_OnOff_1(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down Expand Up @@ -731,7 +731,7 @@ get_InfoOnOff_1(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down Expand Up @@ -839,7 +839,7 @@ get_OnOff_2(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down Expand Up @@ -1011,7 +1011,7 @@ get_InfoOnOff_2(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down Expand Up @@ -1119,7 +1119,7 @@ get_OnOff_3(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
Expand Down

0 comments on commit b9fa669

Please sign in to comment.