MATLAB R2019b has problems with HTTP POST requests

2 visualizaciones (últimos 30 días)
JEROME GARCIA
JEROME GARCIA el 28 de Sept. de 2019
This problem is encountered when communicating with a web server on an Arduino card
Here are some initializing parameters:
url='http://192.168.1.23';
data=struct('recalage','activé','x',0.55);
a=jsonencode(data);
then , with R2019a : webwrite(url,urlencode(a)) returns a correct answer
'<!DOCTYPE HTML>
<head>
<meta charset="utf-8">
</head>
<html>
Arguments GET ou POST: {"recalage":"activé","x":0.55}
Arguments décodés: recalage=activé ,x=0.5500
</html>
'
while, with R2019b, the answer with the same board is:
<!DOCTYPE HTML>
<head>
<meta charset="utf-8">
</head>
<html>
Arguments GET ou POST: ���������������������������������������������������������
</html>
'
the reason is that the function client.read() on arduino returns no data when reading the POST data when the request is coming grom R2019b

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!