-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation regarding TunnelMessage #8
Comments
Tunnel messages are definitely the right tool for the job, I think maybe what you are running into is a known issue where the hub crashes if it gets a tunnel message while not running a program. Since you need a program to be able to pick up the tunnel message anyway it shouldn't be too big a deal, but I do think there is a fix planned for the crash, as obviously that shouldn't happen. If you are already running a program on the hub when this happens, please try to provide reproducible steps, and I'll take a look and see if I can help find the issue. |
I did forget to start the program, however it does not seem to matter as it crashes regardless of if a program is running or not. Reproduction steps:
while True:
print(input("Waiting"))
This is probably not the way to accept messages on the spike, however I couldn't find any docs around it so just trying things and hoping something works. |
I’m seeing something similar (pardon the extra comment over here, I hadn’t found this issue yet): sending a TunnelMessage, even while a program is running—which I verified by having it do some motor things before starting to listen—causes the Spike to shut down. Doesn’t seem to make a difference whether I use |
o/
Hey, I've been fiddling around with the spike making it remote controllable, which I need 2 way communication for.
Currently I've been using file uploads in a spesific format with the bot polling for those and printing lines of json... which isn't ideal.
I saw TunnelMessage was a thing a while ago, however didn't have time back then.
Anyway now I do have time now to try fiddling around with it, however the documentation around it doesn't help much so I feel a bit lost.
I tried sending a "hello" payload, however that seems to just crash the spike (my frame:
6 49 7 4 119 102 112 119 2
). Unsure if the crash is because of me misunderstanding TunnelMessage or just a weird bug in my typescript spike implementation showing up here.The text was updated successfully, but these errors were encountered: