Arduino Email Sending

Now m terminal is working but when i get to the blynk app it still does not display anything.

TERMINAL

Last login: Tue Mar  6 16:34:03 on ttys000
Daniils-Macbook:~ daniilkharlashko$ cd documents
Daniils-Macbook:documents daniilkharlashko$ cd arduino
Daniils-Macbook:arduino daniilkharlashko$ cd libraaries
-bash: cd: libraaries: No such file or directory
Daniils-Macbook:arduino daniilkharlashko$ cd libraries
Daniils-Macbook:libraries daniilkharlashko$ cd blynk
Daniils-Macbook:blynk daniilkharlashko$ cd scripts
Daniils-Macbook:scripts daniilkharlashko$ sh ./blynk-ser.sh
       1 ports found. You can specify port manually using -c option
-n Select serial port [ /dev/tty.usbmodem1421 ]: 
/dev/tty.usbmodem1421
Resetting device /dev/tty.usbmodem1421...
[ Press Ctrl+C to exit ]
Connecting: GOPEN:/dev/tty.usbmodem1421,raw,echo=0,clocal=1,cs8,nonblock=1,ixoff=0,ixon=0,ispeed=9600,ospeed=9600,crtscts=0 <-> openssl-connect:blynk-cloud.com:8441,cafile=/Users/daniilkharlashko/documents/arduino/libraries/blynk/scripts/certs/server.crt,nodelay
2018/03/06 16:37:47 socat[36523] N opening character device "/dev/tty.usbmodem1421" for reading and writing
2018/03/06 16:37:47 socat[36523] N opening connection to LEN=16 AF=2 188.166.206.43:8441
2018/03/06 16:37:47 socat[36523] N successfully connected from local address LEN=16 AF=2 192.168.1.108:59359
2018/03/06 16:37:47 socat[36523] N trusting certificate, commonName matches
2018/03/06 16:37:47 socat[36523] N SSL connection using ECDHE-RSA-AES128-GCM-SHA256
2018/03/06 16:37:47 socat[36523] N SSL connection compression "none"
2018/03/06 16:37:47 socat[36523] N SSL connection expansion "none"
2018/03/06 16:37:47 socat[36523] N starting data transfer loop with FDs [5,5] and [8,8]

@Dankharl good that the USB connection is working.

Did you enter your token in the sketch that you flashed to the Arduino?

what token do you exactly mean?

how do i flash the arduino? am i supposed to reupload the sketch to the arduino?

The Blynk token that was emailed to you when created the project.

You need to upload the basic sketch we discussed WITH YOUR BLYNK TOKEN INCLUDED.

i have already done that, how do i check if it works it doesn’t display anything on the value display on the blynk app.

Did you set V5 as PUSH frequency?

Paste your exact Arduino sketch here but replace your token with ABC before you post it here.

From terminal ping blynk-cloud.com and then send me via PM the IP address and your token.

Alternatively you can try this in a browser:

http://blynk-cloud.com/[your-token]/project but replace [your-token] with your actual Blynk token.

I have made sure its PUSH

SKETCH

/*************************************************************
  Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest

  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.

    Downloads, docs, tutorials: http://www.blynk.cc
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Follow us:                  http://www.fb.com/blynkapp
                                http://twitter.com/blynk_app

  Blynk library is licensed under MIT license
  This example code is in public domain.

 *************************************************************
  =>
  =>          USB HOWTO: http://tiny.cc/BlynkUSB
  =>

  Feel free to apply it to any other example. It's simple!
 *************************************************************/

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT DebugSerial


// You could use a spare Hardware Serial on boards that have it (like Mega)
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(2, 3); // RX, TX

#include <BlynkSimpleStream.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "ABC";


void setup()
{
  // Debug console
  DebugSerial.begin(9600);
  // Blynk will work through Serial
  // Do not read or write this serial manually in your sketch
  Serial.begin(9600);
  Blynk.begin(Serial, auth);
}

void loop()
{
  Blynk.run();
}

it says invalid token

Refresh the token in the app, send it to yourself, paste new token in the Arduino sketch and flash it again.

I can see why V5 doesn’t show anything and that’s because you are using the wrong sketch.

Look back at what I posted before.

should i still do this?>

Do i use this sketch?

If the USB connection is not dropping then don’t change from SSL to TCP.

I don’t see a sketch?

When you said you saw “invalid token” was that in a web browser?

yes

Do i change the v5 pin to v13?

No.

Paste “my sketch” here with V5 and BlynkTimer etc.

which one is your sketch? i wanted to ask is there a limited arduino storage so once i use it i have to buy a new one or i can delete all stuff?

This Arduino Email Sending - #34 by Costas

When you flash a new sketch it simply overwrites what is already on the Arduino, it’s not like a hard disk.