FicsitRemoteMonitoring
FicsitRemoteMonitoring copied to clipboard
Unable to receive data from serial
I installed the mod and ArduinoKit to interface an Arduino Uno via Serial, but for some reason, it doesn't receive nothing.
The configuration for the serial port is correct and i have done the /frmserial start
command.
Is there an example to read the getProdStats JSON.
The Arduino Script
void setup() {
Serial.begin(9600);
}
void loop() {
if(Serial.available() > 0) {
int readed = Serial.read();
Serial.println("READED BYTES: " + readed);
}
}
Both the web and serial SHOULD (known bug on serial, that RL hasn't afforded me time to solve) use the same processes to output. So, localhost:8080/getProdStats will help.
About to DM an Epic for charity. So, busy. Feel free to ping me in the modding discord.
To let you know, I hadn't given up on this... I just haven't been successful, completely... seems to be a bug in ArduinoKit.
Heads up, I got to... this... which I am trying to figure out how/why...
Don't worry, I will wait until a solution is found. If I can ask, after you found the solution, can you give me a little code example to read correctly from Arduino?
Thanks.
Talking about an output sample for each function? If so, yeah, I've been meaning to document that those...
Yes I mean that.
Documentation is being worked on, but I think I finally got it working... my terminal program I was using to validate was only showing me the first 4K despite transferring over that, and thus forced me down an unnecessary rabbit hole.
Should be up for SMR soon once it completes virus scanning that is required by the mod community. FRM 0.8.10.
I will try as soon as the documentation is updated.
Documentation is updated and displayed on the site. Please do me a favor and make sure it makes sense to you. I added examples for all of them, a little bit of Arduino code, and a link to another Reddit/Github location. I might need to cull getAll a bit though, its a bit... big.