/v1/charging
RC transient
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/capacitor-api/v1/charging" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/capacitor-api/v1/charging", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/capacitor-api/v1/charging");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/capacitor-api/v1/charging",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Charging V(t)=Vs(1−e^(−t/RC)); discharging V(t)=V₀·e^(−t/RC). τ=RC; ≈63 % at 1τ, ≈99 % at 5τ.",
"inputs": {
"mode": "charging",
"capacitance_f": 0.0001,
"resistance_ohm": 1000
},
"time_s": 0.1,
"percent": 63.212056,
"voltage_v": 7.585446706,
"time_constant_s": 0.1,
"time_constant_ms": 100
},
"meta": {
"timestamp": "2026-06-05T03:08:59.900Z",
"request_id": "d9ee5b93-35fb-4fc8-8ab9-d01528937f1b"
},
"status": "ok",
"message": "RC transient",
"success": true
}