Skip to content

Commit f0bfc46

Browse files
authored
Merge pull request #763 from KNX-IOT/frank-eitt-fix
Fix for non-confirmable responses
2 parents 57b2df0 + c94a069 commit f0bfc46

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

api/oc_knx_client.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ oc_do_s_mode_read(int64_t group_address)
665665
(uint32_t)group_address, sia_value, iid);
666666

667667
// find the grpid that belongs to the group address
668-
grpid = oc_find_grpid_in_publisher_table(group_address);
668+
grpid = oc_find_grpid_in_recipient_table(group_address);
669669
if (grpid > 0) {
670670
#ifdef OC_USE_MULTICAST_SCOPE_2
671671
oc_issue_s_mode(2, sia_value, grpid, group_address, iid, "r", 0, 0);

security/oc_oscore_engine.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1029,8 +1029,7 @@ oc_oscore_send_message(oc_message_t *msg)
10291029
coap_set_header_max_age(coap_pkt, 0);
10301030
}
10311031

1032-
bool is_request =
1033-
coap_pkt->type == COAP_TYPE_CON || coap_pkt->type == COAP_TYPE_NON;
1032+
bool is_request = coap_pkt->code >= OC_GET && coap_pkt->code <= OC_FETCH;
10341033
bool is_empty_ack = coap_pkt->type == COAP_TYPE_ACK && inner_code == 0;
10351034
bool is_separate_response = coap_pkt->type == COAP_TYPE_CON;
10361035
/* Set the OSCORE option */

0 commit comments

Comments
 (0)