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);
      }
      
      Cpp language logo

      Arduino - Network Communication

      0

      0

      avatar
      Sohail Gulam
      uno
      arduino

      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.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.