Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SimplePublish for ARM mbed

A SimplePublish example has been created on the mbed OS developer site. This is a free, online code editor and compiler that allows you to write code for the mbed OS. This makes it very easy to port code to the different supported platforms.

...

The page for your platform should include instructions on how to set it up and install any necessary drivers.
For our example, the page for NUCLEO-L058R8 informs us that we need to:

...

Tip
You can (de)activate debug and log messages with the NDEBUG and NLOG defines in dn_debug.h (located in sm_qsl/).
Note

Note that there appears to be an issue with the serial output from the ST-LINK/V2 on the Nucleo boards.


Compile and Run the Program

Import to Your Compiler Workspace

  1. Head to the Code page for the SimplePublish program and press the big yellow button:
  2. This should open the Import Program window in the Compiler online IDE:
    Source URL: httphttps://developer.mbed.org/usersteams/jhbrQSL/code/QSL_SimplePublish/
    Import As: Select Program
    Import Name: Rename the program if you want to
    Update: Check to update the libraries that the program depends on (only the main mbed library)
  3. Press Import.
  4. You should now see the program listed under My Programs.

...