Giter Site home page Giter Site logo

Security pin about arduinobleota HOT 11 CLOSED

faizannazir avatar faizannazir commented on July 30, 2024
Security pin

from arduinobleota.

Comments (11)

vovagorodok avatar vovagorodok commented on July 30, 2024 1

Library available at ArduinoIDE as vovagorodok_ArduinoBleOTA.
And at PlatformIO as:

build_flags =
	-D USE_NIM_BLE_ARDUINO_LIB
lib_deps =
	vovagorodok/ArduinoBleOTA@^1.0.0

from arduinobleota.

vovagorodok avatar vovagorodok commented on July 30, 2024

Here is small doc about security: https://github.com/vovagorodok/ArduinoBleOTA/blob/main/doc/SECURITY.md

From doc You can see that there are two options to provide a security by disabling/enabling uploads (using button/switch for example) or set a pin code. See:
drawing

from arduinobleota.

vovagorodok avatar vovagorodok commented on July 30, 2024

Examples of secutity:
Disable upload: https://github.com/vovagorodok/ArduinoBleOTA/blob/main/examples/security_disable_upload/security_disable_upload.ino
Pin code: https://github.com/vovagorodok/ArduinoBleOTA/blob/main/examples/security_pin_code/security_pin_code.ino

from arduinobleota.

faizannazir avatar faizannazir commented on July 30, 2024

when i try to connect ble device from app it asked for pin

from arduinobleota.

vovagorodok avatar vovagorodok commented on July 30, 2024

because You set pin code before

from arduinobleota.

faizannazir avatar faizannazir commented on July 30, 2024

because You set pin code before

by security.setpin(12345) ???

without this code also it ask for pin and pin 12345 also not work

from arduinobleota.

vovagorodok avatar vovagorodok commented on July 30, 2024

As I remember Nim-Ble stack requires exact 6 digits pin. Try 123450 or 012345

Proposed to use ble_ota_app to change pin. It provides interface with 6 only digits pin code

from arduinobleota.

vovagorodok avatar vovagorodok commented on July 30, 2024

Renamed a bit from pin to pin code

from arduinobleota.

faizannazir avatar faizannazir commented on July 30, 2024

how to run these examples on arduino ide is there any possibility to make them compatible with arduino ide

from arduinobleota.

vovagorodok avatar vovagorodok commented on July 30, 2024

I'm PlatformIO user, for me easier to just add to my project:

build_flags =
	-D USE_NIM_BLE_ARDUINO_LIB
lib_deps =
	https://github.com/vovagorodok/ArduinoBleOTA

I have plans to add this library to PlatformIO Hub and prepare it to work in Arduino IDE.
But for this moment there is one small issue that should be solved with non NimBle part of this library.
I hope this month I'll done all of that

from arduinobleota.

vovagorodok avatar vovagorodok commented on July 30, 2024

Created issue in order to remember about it: #37

from arduinobleota.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.