Sending message through CAN protocol using LUA

Hi,

I need to send a message using LUA through CAN in order to receive data from a battery. The message in question is 0x100 and it has to go with the ID Adress 00. I’m new to lua and I don’t quite understand how I should send this message… I’ve been following the following script as a guide: ardupilot/libraries/AP_Scripting/examples/CAN_write.lua at master · ArduPilot/ardupilot · GitHub
Can someone help me?

Thanks!

Hi,

I’ve been doing some more research on the CAN protocol, and what I’d need to send is a Remote Frame or RTR with ID 0x100. Does anyone know how to do this in Lua?

Thanks!