Skip to content

Sending example.com "firmware update" to devices #28

Description

@Kasoo

I notice upon connecting to the server my device says

Firmware update available! Starting now...

In the device logs it looks like inker is sending a fake firmware url down the device, i presume it shouldn't be doing this!

I: src/api-client/display.cpp [131]: Payload - {"status":0,"image_url":"https://INKER/assets/default-screen.png?t=1783168749190","filename":"default-screen-1783168749190.png","image_url_timeout":0,"firmware_url":"https://example.com/firmware/v1.0.0.bin","update_firmware":true,"refresh_rate":900,"reset_firmware":false,"special_function":"","temperature_profile":"default","maximum_compatibility":false,"battery":100,"wifi":-67}
I: src/bl.cpp [2257]: update_firmware: 1
I: src/bl.cpp [2260]: firmware_url: https://example.com/firmware/v1.0.0.bin

I see that example firmware url is in backend/prisma/seed.ts, but i don't understand the implications of this:

  // Create sample firmware
  const firmware = await prisma.firmware.upsert({
    where: { version: '1.0.0' },
    update: {},
    create: {
      version: '1.0.0',
      downloadUrl: 'https://example.com/firmware/v1.0.0.bin',
      releaseNotes: 'Initial stable release',
      isStable: true,
    },
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions