일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 |
- Replication
- 공인IP
- DatePicker
- AntDesign
- mosquitto.conf
- setInterval 외부 정지
- mosquitto
- invalid data
- pm2 확인
- setInterval 중지
- 맥 어드레스
- 데이터테이블 데이터 넣기
- 서버동기화
- DataGridView 직접 입력
- pm2
- setInterval 정지
- map이 undefined가 뜰 때
- pm2 시작
- setInterval clear
- allow_anonymouse
- pm2 설치
- datagridview 직접입력
- pm2 상태 확인
- listener 1883
- transfer
- html #select #option #multiple
- c# datagridview 데이터 넣기
- timepicker
- mySQL_Replication
- 1883
- Today
- Total
목록2024/02 (46)
개발 노트
1. 버튼 컴포넌트 제작 import { useButtonStore } from "@/store/useButtonStore"; const SortButton: React.FC = () => { const {activeSortButton, setActiveSortButton} = useButtonStore() const handleClick = (e: React.MouseEvent): void => { const sort = e.currentTarget.dataset.sort; if (!sort) return switch (sort) { case 'update': setActiveSortButton(sort); break; case 'farmName': setActiveSortButton(sort); br..
1. 초기에 필요한 모양으로 받아온 값 처리 import { extractTime } from '@/utils/extractTime'; import { create } from 'zustand'; export type Message = { topic: string; message: string; time: string; additionalFields?: { [key: string]: any; }; }; type Store = { messages: Message[]; addMessage: (payload: Message) => void; findMessagesByTopics: (topics: string[]) => Message[]; }; export const useMqttStore = create((s..
관제 mqtt연동 마무리
1. 컴포넌트 내부에서 messages배열을 호출하여 상황에 맞게 처리하려고 함 ->update실패 const splitTopic = message.topic.split('/'); const farmCode = splitTopic.length > 2 ? splitTopic[2] : ''; // 시간 값을 추출 const time = extractTime(message.message); const robotMilkingformState = { cpu: 0, ram: 0, hdd: 0, sql: 0, farmName: farmCode, errorState: false, errorList: true, robotCount: 0, gateCount: 0, robotMessage: '', gateMessage: '..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/pGTFH/btsFfe5x8g4/b5K8M5vlpKunyKN4W3hAGk/img.png)
윷놀이에는 이러한 국룰이 있다. 상대의 말을 잡을 때 상대를 돌려보내는 것, 그리고 나의 말과 만나면 업어서 같이 가는 것이다. 이것은 윷놀이에 핵심이기도 하다. [말 잡기] 먼저 상대의 말을 잡는 것을 구현해야한다. foreach (PlayerInformation otherPlayer in players) { if (otherPlayer == currentPlayer) { continue; } foreach (PieceInformation otherPiece in otherPlayer.pieces) { if (otherPiece.currentPosition == currentPosition) { // 해당 플레이어의 초기 위치로 말을 이동시킵니다. int playerId = otherPlayer.pla..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/d8QI0Q/btsFefRivN2/ttIGHegYJsGHsnKbQevDPK/img.png)
이전에 포스팅한 윷놀이 판 배열 설정이 있었다. 하지만 모든 블럭을 0~29번으로 나열 한것뿐이지 이 배치한 블럭이 윷놀이 갈림길 까지 고려할 수 없다는 것이다. 나의 블럭 배치 방식은 바깥 블럭 차레대로 0~19번으로 설정하고 갈림길 블럭을 29번까지 마무리 지었다. 그렇다면 말이 윷 값이 나와서 배열로 움직이면 갈림길 지점에 있어도 지름길을 타지 못하고 배열의 순서대로만 이동된다는 점이다. 그래서 단순하면서도 무식한 방식으로 이 갈림길로 이동할 수 있도록 설정했다. if (currentWaypointIndex == 5) { if ((steps == 1 || steps == 2 || steps == 3 || steps == 4 || steps == 5)) { currentWaypointIndex = 1..