You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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:
Upload this program to the spike on slot 0
whileTrue:
print(input("Waiting"))
Start the spike program on slot 0
Send Info request (0 0 2)
Send TunnelMessage with "hello" as the payload (6 49 7 4 119 102 112 119 2)
Observe the spike crash
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.
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: