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

Add serial SDK #14

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 8 additions & 5 deletions script/download_js_sdk
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ set -e

cd "$(dirname "$0")/.."

SDK_VER=latest
BLE_SDK_VER=latest
BLE_DOWNLOAD_URL=`npm view improv-wifi-sdk@$BLE_SDK_VER dist.tarball`

DOWNLOAD_URL=`npm view improv-wifi-sdk@$SDK_VER dist.tarball`
SERIAL_SDK_VER=latest
SERIAL_DOWNLOAD_URL=`npm view improv-wifi-serial-sdk@$SERIAL_SDK_VER dist.tarball`

rm -rf dist/sdk-js
mkdir -p dist/sdk-js
rm -rf dist/sdk-js dist/sdk-serial-js
mkdir -p dist/sdk-js dist/sdk-serial-js

curl $DOWNLOAD_URL | tar zx -C dist/sdk-js --strip-components 3 package/dist/web
curl $BLE_DOWNLOAD_URL | tar zx -C dist/sdk-js --strip-components 3 package/dist/web
curl $SERIAL_DOWNLOAD_URL | tar zx -C dist/sdk-serial-js --strip-components 3 package/dist/web
1 change: 1 addition & 0 deletions src/_includes/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
content="https://www.improv-wifi.com/images/social.png"
/>
<script type="module" src="/sdk-js/launch-button.js"></script>
<script type="module" src="/sdk-serial-js/serial-launch-button.js"></script>
</head>
<body>
<div class="container">
Expand Down