wolfssl-examples/mynewt
Naruto TAKAHASHI 13d028ce36 add mynewt client-tls sample 2018-07-14 01:25:31 +09:00
..
README.md add mynewt client-tls sample 2018-07-14 01:25:31 +09:00
apps.wolfsslclienttlsmn.pkg.yml add mynewt client-tls sample 2018-07-14 01:25:31 +09:00
apps.wolfsslclienttlsmn.syscfg.yml add mynewt client-tls sample 2018-07-14 01:25:31 +09:00
client-tls-mn.c add mynewt client-tls sample 2018-07-14 01:25:31 +09:00
setup.sh add mynewt client-tls sample 2018-07-14 01:25:31 +09:00

README.md

Apache Mynewt examples

Overview

It provides follows mynewt packages.

  • apps/wolfsslclienttlsmn
    • client-tls simple example ssl/tls client application for mn_socket.

How to setup

delopy wolfssl source to mynewt project

Specify the path of the mynewt project and execute mynewt/setup.sh.

./mynewt/setup.sh /path/to/myproject_path

This script will deploy wolfssl's mynewt package described in the Overview to the mynewt project.

example setting example applications to targets

This section eplains how to set wolfssl example application to target device.

Please execute follows commands at only once.

create wolfsslclienttlsmn_sim that is simulator device for unit test of client-tls.

cd /path/to/myproject_path
newt target delete wolfsslclienttlsmn_sim
newt target create wolfsslclienttlsmn_sim
newt target set wolfsslclienttlsmn_sim app=apps/wolfsslclienttlsmn
newt target set wolfsslclienttlsmn_sim bsp=@apache-mynewt-core/hw/bsp/native
newt target set wolfsslclienttlsmn_sim build_profile=debug

build & test

build and execute wolfsslclienttlsmn_sim

newt clean wolfsslclienttlsmn_sim
newt build wolfsslclienttlsmn_sim
./bin/targets/wolfsslclienttlsmn_sim/app/apps/wolfsslclienttlsmn/wolfsslclienttlsmn.elf