A simple node.js server that acts as a request handler for Blecon and forwards chunks to the Memfault API.
Make sure to set the relevant environment variables:
- BLECON_SECRET: Authentication secret set as a header in Blecon requests
- MEMFAULT_PROJECT_KEY: Your Memfault project key
heroku create blecon-memfault-integration
heroku config:set MEMFAULT_PROJECT_KEY=xxx
heroku config:set BLECON_SECRET=xxx
npm install
export MEMFAULT_PROJECT_KEY=xxx
export BLECON_SECRET=xxx
npm start
In another terminal:
ngrok http 3000
Use the public endpoint displayed by ngrok as your Blecon request handler.