-- Script de connexion local apiUrl = "https://lua-craft-27a5fd88.base44.app" local computerId = os.getComputerID() -- Envoyer heartbeat function sendHeartbeat() local data = { computer_id = tostring(computerId), type = "computer", status = "online", fuel = turtle and turtle.getFuelLevel() or nil, position = {x = 0, y = 0, z = 0} } -- Implémentez l'envoi HTTP ici end -- Boucle de connexion while true do sendHeartbeat() sleep(10) end