This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Communication with Usb
#1
Sad 
Good morning, I have a problem, use this code, but even without the usb it appears that it is connected. My question is how do I place the USB location?
I'm working it this way...


path = 'mnt/PalominoSyT'
if io.exists(path) then
os.execute('mount' .. path .. ' /mnt')
alert('USB mont')
else
alert('USB not found')
end

path = '/mnt'
status = io.exists(path)
io.writefile(path .. 'new.txt', 'This is a test')
result = io.readfile(path .. 'new.txt')
lea = io.readfile('TestLMUsb.txt')

log(status, result, lea)
Reply


Messages In This Thread
Communication with Usb - by Shalltear - 21.03.2017, 14:59
RE: Communication with Usb - by admin - 22.03.2017, 06:55
RE: Communication with Usb - by Shalltear - 22.03.2017, 14:31
RE: Communication with Usb - by admin - 23.03.2017, 07:00
RE: Communication with Usb - by Shalltear - 23.03.2017, 17:06
RE: Communication with Usb - by admin - 24.03.2017, 09:01
RE: Communication with Usb - by Shalltear - 24.03.2017, 16:19
RE: Communication with Usb - by Shalltear - 24.03.2017, 17:57
RE: Communication with Usb - by Shalltear - 28.03.2017, 15:07

Forum Jump: