Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nRF Cloud CoAP Sample #11648

Closed
wants to merge 13 commits into from

Commits on Jul 18, 2023

  1. net: lib: nrf_cloud: Add REST device message defines

    Define strings related to encoding a device message
    in JSON.
    
    Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
    plskeggs committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    a255a45 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. net: lib: nrf_cloud: Add general message encoder

    Add a general purpose JSON message encoder,
    nrf_cloud_encode_message().
    
    Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
    plskeggs committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    18fe27f View commit details
    Browse the repository at this point in the history
  2. net: lib: nrf_cloud: Add control over reported

    When encoding the shadow, let the caller determine if
    the reported object should be included.
    
    Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
    plskeggs committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    597b23d View commit details
    Browse the repository at this point in the history
  3. net: lib: nrf_cloud: Separate P-GPS decode from update

    Split out update function so it can be used for CoAP.
    
    Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
    plskeggs committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    3eafdb0 View commit details
    Browse the repository at this point in the history
  4. net: lib: nrf_cloud: Use atomic_inc on atomic_t variable

    This was incorrectly using the ++ operator when atomic_inc()
    would be better.
    
    Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
    plskeggs committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    2d5a7a7 View commit details
    Browse the repository at this point in the history
  5. lib: modem_jwt: Use unsigned int for sec_tag

    Modem sec tags are unsigned, so use that representation
    instead of plain int.
    
    Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
    plskeggs committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    4e8268b View commit details
    Browse the repository at this point in the history
  6. net: lib: nrf_cloud: Add new CoAP library

    Uses the Zephyr coap_client library. Sends and receives
    data with nRF Cloud using CBOR and sometimes JSON.
    
    Supports most nRF Cloud services - FOTA, data messaging,
    location services (cellular, Wi-Fi, A-GPS, P-GPS).
    
    Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
    plskeggs committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    fc7f797 View commit details
    Browse the repository at this point in the history
  7. docs: Add docs for nRF Cloud CoAP

    Document the new nrf_cloud_coap library.
    
    Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
    Co-authored-by: Pekka Niskanen <pekka.niskanen@nordicsemi.no>
    plskeggs and peknis committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    baaac2b View commit details
    Browse the repository at this point in the history
  8. lib: location: Add nRF Cloud CoAP support

    Implemented support for A-GPS and cellular positioning
    using nRF Cloud CoAP.
    
    Signed-off-by: Tommi Kangas <tommi.kangas@nordicsemi.no>
    tokangas authored and plskeggs committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    36a70ff View commit details
    Browse the repository at this point in the history
  9. samples: nrf9160: modem_shell: Add nRF Cloud CoAP support

    Added support for connecting to nRF Cloud using CoAP.
    
    Signed-off-by: Tommi Kangas <tommi.kangas@nordicsemi.no>
    tokangas authored and plskeggs committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    6abfa5a View commit details
    Browse the repository at this point in the history
  10. docs: Mention modem_shell for nRF Cloud CoAP

    Document a sample which uses nRF Cloud CoAP.
    
    Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
    plskeggs committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    15b03f6 View commit details
    Browse the repository at this point in the history
  11. samples: cellular: nrf_cloud_coap_client: Add new sample

    This nRF Cloud CoAP client demonstrates using FOTA, messaging,
    cellular positioning, A-GPS, and P-GPS over CoAP.
    
    Get modem info IMEI and mfw. Init the modem, which waits for LTE
    connection. Look up server IP. Init the client, including
    looking up device IP with modem info.
    
    Send real cell pos parameters, receive, decode, and display
    location. Send cell pos back as fake GNSS PVT data.
    
    Send fake temperature sensor data. Receive and process
    MODEM and APP FOTA types.
    
    Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
    plskeggs committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    a7789f6 View commit details
    Browse the repository at this point in the history
  12. docs: Add docs for the nRF Cloud CoAP Client sample

    WIP.
    
    Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
    plskeggs committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    9b689fa View commit details
    Browse the repository at this point in the history