提示错误处代码如下所示:
device->class->socket_ops->at_socket = RT_NULL;
device->class->socket_ops->at_socket = store_at_socket_temporary;
报错行/at_socket.c的760行与773行,报错内容一致;
若使用AC5报错内容如下:
..\..\..\components\net\at\at_socket\at_socket.c(760): error: #137: expression must be a modifiable lvalue
device->class->socket_ops->at_socket = RT_NULL;
若使用AC6报错内容如下:
../../../components/net/at/at_socket/at_socket.c(760): error: cannot assign to non-static data member 'socket_ops' with const-qualified type 'const struct at_socket_ops *'
device->class->socket_ops->at_socket = RT_NULL;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
應該是 RT-Thread kernel 修改了一些型別定義
與現在components 適配的版本已經不一致
其他組件也遇過類似的問題