Skip to content
Commit d6792494 authored by Robert Lubos's avatar Robert Lubos Committed by Benjamin Cabé
Browse files

net: coap_client: Fix build with cpp projects



The coap_client.h header won't build if included from c++ file:

error: expected primary-expression before ‘.’ token
  .value[0] = coap_bytes_to_block_size(CONFIG_COAP_CLIENT_BLOCK_SIZE),

Therefore move the actual function implementation to the library C file
to prevent this.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 4600a7f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment