onatbas / bluetooth.koplugin

A plugin to easily turn bluetooth on and off in KOReader for Kobo Devices. Basic console skills required.
https://www.mobileread.com/forums/showthread.php?t=362986
6 stars 0 forks source link

plugin doesn’t initiate the device connection properly and Koreadr restart is needed #3

Closed onatbas closed 1 month ago

onatbas commented 1 month ago

I was trying to initiate the connection to the device using this line in main.lua, thinking that's how you access the singleton but it doesn't work like that:

Change this to the correct instruction in the main.lua. require("device/kobo/device").input.open("/dev/input/event3")