Go to advanced search

by Zili
Sun Mar 24, 2019 11:28 am
Forum: C/C++
Topic: How to use libssh2 in C
Replies: 8
Views: 2442

Re: How to use libssh2 in C

Thanks to rpdom and PeterO.

The problem was trivial.
simply the library is not called libssh2.lib but ssh2 !
The compilation command is:
gcc -Wall -Wno-unused-function myProgram.c -o myProgram.exe -l ssh2
by Zili
Mon Mar 18, 2019 3:32 pm
Forum: C/C++
Topic: How to use libssh2 in C
Replies: 8
Views: 2442

How to use libssh2 in C

I'm trying to make a C program to connect to an ssh server. I used an
apt-get install libssh2-1
but the linker can't find the libraries!
Can someone help me ?
Thank you.
by Zili
Mon Feb 19, 2018 7:47 pm
Forum: Automation, sensing and robotics
Topic: Accessing DS3231 Temperature
Replies: 12
Views: 16031

Re: Accessing DS3231 Temperature

or also, with Pi3B and jessie:

echo $(cat /sys/bus/i2c/devices/1-0068/hwmon/hwmon0/temp1_input|awk '{print $0/1000 " °C"}')
by Zili
Thu Feb 01, 2018 1:52 pm
Forum: C/C++
Topic: ADS1115 Problem with C Code
Replies: 7
Views: 10606

Re: ADS1115 Problem with C Code

careful guys,
the while on the waiting loop is wrong.
try this way:

Code: Select all

do {
	if (read(fd, buf, 2) != 2) {
	  perror("Read conversion");
	  exit(-1);
	}
  } while (!(buf[0] & 0x80));
by Zili
Sat Apr 22, 2017 7:47 pm
Forum: Italiano
Topic: RP3 apt-get update
Replies: 0
Views: 320

RP3 apt-get update

Ho problemi con la apt-get update nel senso che viene evidenziato il messaggio Impossibile recuperare http://archive.raspberrypi.org/debian/dists/jessie/main/i18n/Translation-it Errore nel leggere dal server - read (104: Connessione interrotta dal corrispondente) [IP: 93.93.130.39 80] . In verità de...
by Zili
Tue Jan 19, 2016 7:52 pm
Forum: Italiano
Topic: dongle wifi
Replies: 2
Views: 579

Re: dongle wifi

Prima di ogni altra cosa prova questo comando:

sudo iwlist wlan0 scan

dovresti vedere tutte le reti WiFi nelle vicinanze.
by Zili
Tue Jan 19, 2016 6:51 pm
Forum: Italiano
Topic: Configurazione scheda wifi TP-link
Replies: 1
Views: 527

Re: Configurazione scheda wifi TP-link

Guarda che la cosa è molto ( ma molto ) più semplice di quanto si possa credere. Incomincia col dare il comando sudo iwlist wlan0 scan | grep ESSID dovresti vedere elencate tutte le reti WiFi disponibili. A quel punto devi editare il file di configurazione: così: nano /etc/wpa_supplicant/wpa_supplic...

Go to advanced search