| | |
| | | |
| | | import com.moral.service.DeviceService; |
| | | import com.moral.service.SensorService; |
| | | import com.moral.webSocketServer.BSTestWebsocketServer; |
| | | import com.moral.webSocketServer.BSWebsocketServer; |
| | | import com.moral.webSocketServer.WebSocketServer; |
| | | |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.web.socket.server.standard.ServerEndpointExporter; |
| | | |
| | | @Configuration |
| | | public class WebSocketConfig { |
| | |
| | | WebSocketServer.deviceService=deviceService; |
| | | WebSocketServerNew.deviceService=deviceService; |
| | | BSWebsocketServer.deviceService=deviceService; |
| | | BSTestWebsocketServer.deviceService=deviceService; |
| | | } |
| | | @Autowired |
| | | public void setSensorService( SensorService sensorService){ |
| | | BSTestWebsocketServer.sensorService=sensorService; |
| | | BSWebsocketServer.sensorService=sensorService; |
| | | } |
| | | |