Skip to content

Commit

Permalink
Make tests happy
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Thompson <[email protected]>
  • Loading branch information
cheekyhalf committed Nov 21, 2016
2 parents 1a54b5e + c57b5ca commit 3e75f03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/common/coap_abstraction_erbium.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,6 @@ void coap_SendNotify(AddressType * addr, const char * path, const char * token,
const char * payload, int payloadLen, int sequence)
{
// TODO - FIXME: if path is not full uri then map addr to Network address + append path(?)
coap_packet_t notify;
coap_transaction_t *transaction;
NetworkAddress * remoteAddress = NetworkAddress_New(path, strlen(path));

Lwm2m_Debug("Coap notify: %s\n", path);
Expand All @@ -536,6 +534,9 @@ void coap_SendNotify(AddressType * addr, const char * path, const char * token,

if (remoteAddress)
{
coap_packet_t notify;
coap_transaction_t *transaction;

coap_init_message(&notify, COAP_TYPE_NON, CONTENT_2_05, coap_get_mid());

if (contentType != AwaContentType_None)
Expand Down

0 comments on commit 3e75f03

Please sign in to comment.