Coder Social home page Coder Social logo

adpc-iot-embedded-software's Introduction

BLE_Privacy_Beacon

Implementation of a BLE device implementing information and consent mechanisms in the context of an IoT system collecting personal information.

Foreword

This application is for demonstration purposes only, it should not be used in an industrial context as is.

Settings

  • the arduino should be updated to its latest version (the version used for the demo is 1.8.19)
  • some additional libraries must be installed: arduinojson (latest 5.x), manual install of BLECarrousel
  • you have to install esp32 boards (using https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json in settings additional boards manager urls), in our case we use the ESP32C3 dev module
  • other settings must be left by default, but be careful about the port (/dev/ttyUSBx): one may require sudo privileges
  • the code needs to be compiled (Ctrl+R), then uploaded to the device (Ctrl+U)

Structure

  • setup() is the main function, in which we define the ADPC notice and various required functions
  • MyConsentCallBack is for the GATT service, the function onWrite displays the consents retrieved in the terminal
  • other functions are not to be touched

Limitations/known issues

  • in the code, string s1 needs to escape with \ when using "", no newline (otherwise character encoding issue)
  • the size of the notice communicated is hardcoded
  • upload may fail due to corruption of the data communicated, simply try again in that case
  • the mobile app may not disconnect properly, in that case simply reboot the device

adpc-iot-embedded-software's People

Contributors

cunchem avatar soheil-human avatar

Watchers

 avatar

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.