mwohlert / balena-factoryreset-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Balena FactoryReset Example

Example to test the FactoryReset functionality of the balena-supervisor in conjunction with deleting all wireless connections

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • device connected to the balena cloud
  • wireless connection
  • Update staged and not applied due to lockfile

Installing

If you are running the development balenaOS push the application to the device locally:

balena push x.x.x.x --logs --source .

If you are using the balena cloud, follow the release instructions.

Usage

In order to trigger a factory reset do a post request to the factoryReset route:

curl -X POST http://deviceIPAdress:8080/factoryReset

About

License:MIT License


Languages

Language:Go 100.0%