Go to advanced search

by bandejiya
Tue Feb 12, 2019 4:20 am
Forum: General discussion
Topic: How to connect a ethernet device(having its own static I.p and netmask) wirelessly by my laptop?
Replies: 1
Views: 159

How to connect a ethernet device(having its own static I.p and netmask) wirelessly by my laptop?

I have a device which is used to monitor analog sensor data(Micron optics sm130 ) with ethernet port available. It has Static IP as 10.0.0.126 Netmask as 255.255.255.0 DHCP server disabled Its works fine if If I connect it with my laptop using ethernet cable and by configuring my laptop's IP as stat...
by bandejiya
Wed Jan 09, 2019 7:15 am
Forum: C/C++
Topic: ADS1115 Problem with C Code
Replies: 7
Views: 10606

Re: ADS1115 Problem with C Code

Zili wrote:
Thu Feb 01, 2018 1:52 pm
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));
should not it be buf[1] instead of buf[0] as the status bit in the status register is 15th bit?

Go to advanced search