Skip to content

Commit

Permalink
Update Kconfig, CoAP options and log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtalat committed Dec 14, 2022
1 parent e6bba60 commit 192e0da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions source/nce_iot_c_sdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ static int _get_psk( char * packet,
strcpy( nceKey->Psk, p );
}

NceOSLogInfo( "DTLS Credentials Recieved.\n" );
return NCE_SDK_SUCCESS;
}
}
Expand Down Expand Up @@ -173,9 +174,9 @@ static int _os_coap_onboard( os_network_ops_t * osNetwork,

/* 0x3d : 0011 -> Opt. delta (3)
* 1101 -> Opt. Length (13)
* 0x07 : Opt. Length Extended (7) for a total length of 20 "coap.os.1nce.com"
* 0x03 : Opt. Length Extended (3) for a total length of 16 "coap.os.1nce.com"
*/
static const unsigned char uri_host_option[] = { 0x3d, 0x07 };
static const unsigned char uri_host_option[] = { 0x3d, 0x03 };

/*0x89 : 1000 -> Opt. delta (8)
* 1001 -> Opt. Length (9) "bootstrap"
Expand Down Expand Up @@ -293,7 +294,7 @@ int os_energy_save( char * packet,

memcpy( packet + location, &e.value.bytes, e.template_length );
location += e.template_length;
NceOSLogError( "location %d.\n", location );
NceOSLogDebug( "location %d.\n", location );
}

va_end( ap );
Expand Down
2 changes: 1 addition & 1 deletion zephyr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ config NCE_DEVICE_AUTHENTICATOR

config NCE_ENERGY_SAVER
bool "Enable 1NCE Energy Saver"
default y
default n
help
use 1nce energy saver to optimize payload size.

Expand Down

0 comments on commit 192e0da

Please sign in to comment.