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

Django: Send data to devices via admin dashboard #27

Merged
merged 4 commits into from
Jun 4, 2024

Commits on Jun 4, 2024

  1. docker-compose: add env var for leshan uri

    Django needs to know how to reach leshan. This can be either
    http://0.0.0.0 or http://leshan depending if the server runs locally or
    in docker. Django reads the env variable and assigns either.
    
    Signed-off-by: Jonas Remmert <jremmert@gmx.net>
    jonas-rem committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    bd2dac7 View commit details
    Browse the repository at this point in the history
  2. django: admin dashboard: send data to device

    When a DeviceOperation gets saves (added or changed) django triggers a
    ReST api call to Leshan to send that resource. Depending on whether that
    was successfull, it updates the fields "status, Retransmit counter".
    
    Limitation: Works only for non-queue mode for now. Rest api gets called
    synchronously.
    
    Signed-off-by: Jonas Remmert <jremmert@gmx.net>
    jonas-rem committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    4803ea7 View commit details
    Browse the repository at this point in the history
  3. django: improve logging, add module

    Signed-off-by: Jonas Remmert <jremmert@gmx.net>
    jonas-rem committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    d146c14 View commit details
    Browse the repository at this point in the history
  4. django: admin dashboard: make some fields read-only

    Signed-off-by: Jonas Remmert <jremmert@gmx.net>
    jonas-rem committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    b5c6e6d View commit details
    Browse the repository at this point in the history