| 1234567891011121314151617181920212223242526272829303132 |
- #ifndef OTACLIENT_H
- #define OTACLIENT_H
- #include <QThread>
- #include <grpcpp/grpcpp.h>
- #include "ota.grpc.pb.h"
- #include "ota.pb.h"
- using grpc::Channel;
- using grpc::ClientContext;
- using grpc::Status;
- class otaclient : public QThread
- {
- public:
- otaclient();
- private:
- std::string mstrserverip = "0.0.0.0";//"123.57.212.138";
- std::string mstrserverport = "60051";//"9000";
- std::string mstrVIN = "AAAAAAAAAAAAAAAAA";
- std::string mstrVehicleType = "GE3";
- std::string mstrVersion = "0.0.0";
- private:
- void run();
- bool mbInitOK = true;
- };
- #endif // OTACLIENT_H
|