Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0

ERROR IN NET EVENTHANDLER[modem.lua] - solved


Did a clean reinstall of OpenOS, and now it works properly smh. I guess I messed up my HDD then.




so I opened this second thread for another problem I had, using a github script in order to ease the interaction with my drone and execute code on it remotely, maybe even get something printed into my client interface

and get an understanding of what some methods are actually returning for example.

I came across https://gist.github.com/fnuecke/6bcbd66910b946b54ec7


So the thing is, when I try to execute this client.lua:

local component = require("component")
local event = require("event")
local modem = component.modem
modem.broadcast(2412, "drone=component.proxy(component.list('drone')())")
while true do
  local cmd=io.read()
  if not cmd then return end
  modem.broadcast(2412, cmd)
  print(select(6, event.pull(5, "modem_message")))

it immediately throws me this error:

ERROR IN NET EVENTHANDLER[modem.lua]: /lib/network/modem.lua:28: attempt to concatenate a nil value (local 'data')


I opened modem.lua, to read that line and maybe understand whats going on but nope. Modem.lua is definitely too high for me to understand at this point in time.

But I think I would find solutions to most drone specific things, if I could get this provided script working, even though it takes time.


Thanks in advance for any help!

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.