diff --git a/speaker_driver.lua b/speaker_driver.lua index 5b587a5..4b0a704 100644 --- a/speaker_driver.lua +++ b/speaker_driver.lua @@ -52,6 +52,7 @@ local function createSoundFile(fileName) event, url, handle = os.pullEvent() if event == "http_failure" and url == fullPath then print("HTTP request failed for: " .. url) + print(event) return nil end if event == "http_success" then @@ -98,4 +99,4 @@ end local function report() end -return { report = report, watch = watch, startup = startup, shutdown = shutdown, playControlRoomAlarm = playControlRoomAlarm, addSoundFile = addSoundFile } \ No newline at end of file +return { report = report, watch = watch, startup = startup, shutdown = shutdown, playControlRoomAlarm = playControlRoomAlarm, addSoundFile = addSoundFile, playExternalAlarm = playExternalAlarm, playInternalAlarm = playInternalAlarm } \ No newline at end of file