PYBD OSError: [Errno 22] EINVAL
Posted: Wed Sep 16, 2020 1:40 pm
Hello,
I was recently making a Web server for the Pyboard-D SF2W + magnetometer.
The software consists of sending a web page for the user to fill, in the indicated fields, the number of measures and the delay between them. The software receives these values and starts recording the sensor's magnetic field readings in a file (.csv). After all measurements are made, it makes the .csv file available for download via the web interface.
The line indicated by the ERROR is responsible for recording the readings in the .csv file (the problem is not in the line, as it normally works in simple reading software without web service).
I can't understand why this "OSError: [Errno 22] EINVAL". Would anyone know if the problem is the code or a board limitation?
I was recently making a Web server for the Pyboard-D SF2W + magnetometer.
The software consists of sending a web page for the user to fill, in the indicated fields, the number of measures and the delay between them. The software receives these values and starts recording the sensor's magnetic field readings in a file (.csv). After all measurements are made, it makes the .csv file available for download via the web interface.
The line indicated by the ERROR is responsible for recording the readings in the .csv file (the problem is not in the line, as it normally works in simple reading software without web service).
I can't understand why this "OSError: [Errno 22] EINVAL". Would anyone know if the problem is the code or a board limitation?