Skip to content

Instantly share code, notes, and snippets.

View Toothed20's full-sized avatar
🎯
Focusing

Jose Angel Toothed20

🎯
Focusing
View GitHub Profile
@Toothed20
Toothed20 / gateway.py
Last active May 27, 2026 04:00
Script de Python que actúa como un servidor intermediario (Gateway IoT)
import socket
import oci
import json
import base64
# =================================================================
# CONFIGURACIÓN DE ORACLE CLOUD INFRASTRUCTURE (OCI)
# =================================================================
# 1. Cargar el archivo de autenticación local generado con (~/.oci/config) 'oci setup config'
config = oci.config.from_file()