Home » U++ Library support » U++ Core » LoadFile("/sys/devices/virtual/thermal/ ...") does not work
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work [message #58292 is a reply to message #58278] |
Tue, 12 April 2022 08:54 |
Tom1
Messages: 1212 Registered: March 2007
|
Senior Contributor |
|
|
Hi Mirek,
None of the options below work. The file opens OK, but reading fails with all means:
FileIn in;
in.Open("/sys/devices/virtual/thermal/thermal_zone0/temp");
if(in.IsError()) return -100;
// String result = in.GetLine();
// String result = in.Get(5);
String result = in.GetAll(8);
if(!result.IsEmpty()) return 0.001*ScanInt(~result);
return -55.0;
Best regards,
Tom
|
|
|
|
|
LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Wed, 06 April 2022 12:29
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: mirek on Fri, 08 April 2022 16:11
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Tue, 12 April 2022 08:54
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Tue, 12 April 2022 14:46
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Wed, 13 April 2022 09:13
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Wed, 13 April 2022 14:44
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: mirek on Wed, 13 April 2022 17:39
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Wed, 13 April 2022 18:45
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Wed, 13 April 2022 20:33
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: mirek on Mon, 16 May 2022 10:48
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Wed, 18 May 2022 09:05
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: mirek on Wed, 18 May 2022 09:58
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Wed, 18 May 2022 10:15
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Wed, 18 May 2022 10:26
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: mirek on Wed, 18 May 2022 10:29
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Wed, 18 May 2022 10:36
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: pvictor on Wed, 18 May 2022 10:50
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: mirek on Wed, 18 May 2022 10:58
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Wed, 18 May 2022 10:47
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: mirek on Wed, 18 May 2022 11:04
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Wed, 18 May 2022 11:10
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: mirek on Thu, 19 May 2022 10:33
|
|
|
Re: LoadFile("/sys/devices/virtual/thermal/ ...") does not work
By: Tom1 on Thu, 19 May 2022 11:04
|
Goto Forum:
Current Time: Sun Apr 28 00:27:33 CEST 2024
Total time taken to generate the page: 0.04385 seconds
|