BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Blynk-client invalid token

Yes but it’s same : second link step 2 command blynk-client 715f8cafe95f4a91bae319d0376caa8c ( with token from my android blynk app )

Same message than my first post…

So what EXACTLY are are you putting in place of these lines of code…

const Blynk = require('blynk-library');  // Links variable 'Blynk' to the Blynk Library
const AUTH = 'xxxxxxxxxx';  // Your top secret auth code
const blynk = new Blynk.Blynk(AUTH, options = {
	 connector : new Blynk.TcpClient( options = { addr: "xxx.xxx.xxx.xxx", port: 8080 } )  // This takes all the info and directs the connection to you Local Server.
	 });

Pete.

I don’t place this code, i stop before. Maybe thats why ! Where i have to put them ?

Maybe you should actually read the link to the topics that I provided.

Pete.

I read and i follow it…
Maybe i’m stupide but if i come ask for help it’s because i dont understand…

Post the script that you’re currently using.

Pete.

I don’t understand What script you mean. When i follow tutorial they don’t talk about script…

ifyouare talking about this step : Creating a new Node.js project with Blynk on this lynk http://help.blynk.cc/en/articles/583104-how-to-install-node-js-library-on-linux

I can’t go to this point because i’m blocked before to blynk-client command

Have you considered that maybe running a local server and/or programming in NodeJS isn’t the best approach for you at the moment?

The vast majority of Blynk users use the cloud servers, and if the do run a local server it is just as a server rather than as a client as well.
The simplest client hardware to use is the NodeMCU board, with the C++ client library.
There are many examples of C++ client sketches in the Sketch Builder (at the top of this page) and a large pool of people who regularly program in C++ to provide assistance and guidance.

Pete.

I d’ont know i just follow some tutorial for testing blyng no more. They don’t say what’s better for me.

I need local serveur because majority of my project run in a palce whitout internet connexion.

If i can have choise i gonna use mydevices by Cayenne.

I just want to know why i have invalid token than i follow this video ( making by Bynk ) https://www.youtube.com/watch?v=LJ3ic8C8CcA

If it’s not good way how i can do for run my rapsberry in serveur + client. I can separate them 1 for client and 1 other for server

As I’ve explained before, it’s because your client is trying to connect to the cloud server, and the Auth token from your local server isn’t valid on the cloud server. To overcome this you need to edit your script to tell the client to connect to your local server.
I’ve linked you to a tutorial that shows you how to do that, but you not only don’t understand the tutorial, you don’t know what a script is. This is despite you saying that you’ve followed the Blynk step by step instruction (also included in the link I provided) which clearly refers to the script in which you need to change the Auth code.

I think that programming in NodeJS is beyond your current capabilities.

Pete.

So ok I just don’t know where i have to make script. With esp8266 i have to send script on it ok.

But with Raspberry i don’t know. ( and i think i don’t need some programming for control gpio on raspberry with blynk )

I think you can just say me where i have to put this :

For Local Server:

const Blynk = require('blynk-library');  // Links variable 'Blynk' to the Blynk Library
const AUTH = 'xxxxxxxxxx';  // Your top secret auth code
const blynk = new Blynk.Blynk(AUTH, options = {
	 connector : new Blynk.TcpClient( options = { addr: "xxx.xxx.xxx.xxx", port: 8080 } )  // This takes all the info and directs the connection to you Local Server.
	 });

Into your current script, but I can’t tell you where within that script until you work our what current script you are using, and share it here.

Pete.

I don’t make script from my own, it’s during instalation on wich step of your link i have to make script ?
Really i don’t understand maybe you can show me screen shot or other ?

I’m sorry but i don’t understand

Pete.

maybe solution is more like this ? Raspi3 run client on local sever

But is not the solutions.

Hi community i restart a post here for find help.

I’ve one Raspberry Pi with blynk local server and i want is client to.

No problem for server install, is running
For client i’m using this http://help.blynk.cc/en/articles/583104-how-to-install-node-js-library-on-linux

And now i’m looking for command who start client and add token. I try this command : Raspi3 run client on local sever

But don’t work ( maybe to old )

Some body can help me ?

( i’ve mild autism syndrome please be understanding, and give clear and easy reponses )

Thanks (:slightly_smiling_face:

Salut la communauté, je redémarre un message ici pour trouver de l’aide.

J’ai un Raspberry Pi avec un serveur local et un client blynk.

Aucun problème pour l’installation du serveur, tout fonctionne.
Pour le client, j’utilise ce tuto http://help.blynk.cc/en/articles/583104-how-to-install-node-js-library-on-linux

Et maintenant, je recherche une commande qui démarre le client et ajoute le token. J’ai essaye cette commande: Raspi3 run client on local sever

Mais ca ne fonctionne pas (peut-être trop vieux) retour de la commande ::

>     pi @ raspberrypi: ~ / Blynk $ blynk-client --server = 192.168.1.35 --token = ASShFmM8n-eTRqeWxbVKtSr4RoCLguDz
> 
>     ___ __ __
> 
>     / _) / / _ _____ / / __
>     / _ / / // / _ / '/
>     /// _, ///// _
>     / __ /
> 
>     Offrez à Blynk une star de Github! => https://github.com/vshymanskyy/blynk-library-js
> 
>     Mode marche / arrêt
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté
>     Connexion à: blynk-cloud.com 443
>     Autorisation SSL…
>     Connecté

On dirait que ca se connecte au serveur blynk et non pas a mon serveur local

Quelqu’un peut m’aider?

(Je souffre d’un syndrome d’autisme léger, soyez compréhensif et donnez des réponses claires et faciles)

Merci :slightly_smiling_face:

@CharlesTestas please stop creating new topics about the same issue.
All the answers you require are in this one post, all you need to do is to study the documentaion.

Pete.