Arduino - Network Communication

    0

    0

    Sohail Gulam

    unoarduino

    The CC3000 WiFi module from Texas Instruments is a small silver package, which finally brings easy-to-use, affordable WiFi functionality to your Arduino projects.

    It uses SPI for communication (not UART!) so you can push data as fast as you want or as slow as you want. It has a proper interrupt system with IRQ pin so you can have asynchronous connections. It supports 802.11b/g, open/WEP/WPA/WPA2 security, TKIP & AES. A built-in TCP/IP stack with a "BSD socket" interface supports TCP and UDP in both the client and the server mode.

    const int relay_pin = 8; // Relay pin
    void setup() {
       Serial.begin(9600);
       pinMode(relay_pin,OUTPUT);
    }
    void loop() {
       // Activate relay
       digitalWrite(relay_pin, HIGH);
       // Wait for 1 second
       delay(1000);
       // Deactivate relay
       digitalWrite(relay_pin, LOW);
       // Wait for 1 second
       delay(1000);
    }
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.