qr

package
v0.0.0-...-5ef72e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package qr implements the creation of QR code based Apple HomeKit® setup codes and the respective payloads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBoxedCode

func CreateBoxedCode(setupCode hk.Code, setupID hk.ID, setupFlags hk.Flag, category hk.Category) (image.Image, error)

CreateBoxedCode creates a QR code based Apple HomeKit® setup code that is placed inside a bordered box with the Apple HomeKit® logo and the setup code in plain text. These codes are usually found as stickers on MFi accessories.

func CreateCode

func CreateCode(setupCode hk.Code, setupID hk.ID, setupFlags hk.Flag, category hk.Category) (image.Image, error)

CreateCode creates a QR code based Apple HomeKit® setup code.

func CreatePayload

func CreatePayload(setupCode hk.Code, setupID hk.ID, setupFlags hk.Flag, category hk.Category) (string, error)

CreatePayload creates a QR code payload for the given Apple HomeKit® setup code.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL