FIx missing } in an example

This commit is contained in:
Philip Gladstone 2022-03-06 15:09:19 -05:00
parent 3e5ba2843c
commit 1c26ba35d0
1 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,9 @@ function read_battery_level()
-- This ought to do something better! -- This ought to do something better!
return 50 return 50
end end
local battery = { uuid="180f", characteristics={ {uuid="2a19", type='B', read=read_battery_level} } } battery = { uuid="180f", characteristics={ {uuid="2a19", type='B', read=read_battery_level} } }
local myservice = {uuid="0123456789abcdef0123456789abcdef", characteristics={{uuid="1234", value=0, type='c'}}} myservice = {uuid="0123456789abcdef0123456789abcdef", characteristics={{uuid="1234", value=0, type='c'}}}
local config = {name="MyGadget=", services={ myservice, battery } config = {name="MyGadget", services={ myservice, battery } }
ble.init(config) ble.init(config)
``` ```